hatch-surf/node_modules/next/dist/client/route-loader.d.ts
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

50 lines
1.8 KiB
TypeScript

import type { ComponentType } from 'react';
import type { ProxyMatcher } from '../build/analysis/get-page-static-info';
import type { RequiredServerFilesManifest } from '../build';
declare global {
interface Window {
__BUILD_MANIFEST?: Record<string, string[]>;
__BUILD_MANIFEST_CB?: Function;
__SERVER_FILES_MANIFEST?: RequiredServerFilesManifest;
__MIDDLEWARE_MATCHERS?: ProxyMatcher[];
__MIDDLEWARE_MATCHERS_CB?: Function;
__REACT_LOADABLE_MANIFEST?: any;
__DYNAMIC_CSS_MANIFEST?: any;
__RSC_MANIFEST?: any;
__RSC_SERVER_MANIFEST?: any;
__NEXT_FONT_MANIFEST?: any;
__SUBRESOURCE_INTEGRITY_MANIFEST?: string;
__INTERCEPTION_ROUTE_REWRITE_MANIFEST?: string;
}
}
interface LoadedEntrypointSuccess {
component: ComponentType;
exports: any;
}
interface LoadedEntrypointFailure {
error: unknown;
}
type RouteEntrypoint = LoadedEntrypointSuccess | LoadedEntrypointFailure;
interface RouteStyleSheet {
href: string;
content: string;
}
interface LoadedRouteSuccess extends LoadedEntrypointSuccess {
styles: RouteStyleSheet[];
}
interface LoadedRouteFailure {
error: unknown;
}
type RouteLoaderEntry = LoadedRouteSuccess | LoadedRouteFailure;
export interface RouteLoader {
whenEntrypoint(route: string): Promise<RouteEntrypoint>;
onEntrypoint(route: string, execute: () => unknown): void;
loadRoute(route: string, prefetch?: boolean): Promise<RouteLoaderEntry>;
prefetch(route: string): Promise<void>;
}
export declare function markAssetError(err: Error): Error;
export declare function isAssetError(err?: Error): boolean | undefined;
export declare function getClientBuildManifest(): Promise<Record<string, string[]>>;
export declare function createRouteLoader(assetPrefix: string): RouteLoader;
export {};