import type { Route } from "./router"; export interface SSGEntry { html: string; renderedAt: number; revalidateMs?: number; } export interface SSGConfig { revalidateMs?: number; } export interface SSGCache { get(pathname: string): string | null; set(pathname: string, html: string, revalidateMs?: number): void; getOrRender(pathname: string, render: () => Promise, revalidateMs?: number): Promise; clear(): void; } export declare function resolveSSGConfig(value: unknown): SSGConfig | null; export declare function createSSGCache(): SSGCache; export declare function getPrerendered(pathname: string): string | null; export declare function setPrerendered(pathname: string, html: string, revalidateMs?: number): void; export declare function clearSSGCache(): void; export declare function prerender(routes: Route[], renderRoute: (route: Route) => Promise, cache?: SSGCache): Promise; //# sourceMappingURL=ssg.d.ts.map