import { m as Provides, i as RouteRecord, b as RouteLocationNormalized } from './types-BURmCFnX.js'; import { b as VNode, C as ComponentType } from './vnode-B_CmIoCi.js'; interface RenderToStringOptions { context?: Record; provides?: Provides; } interface RenderToStringResult { html: string; styles: string[]; } type RenderToStringSource = VNode | ComponentType | (() => VNode); declare function renderToString(source: RenderToStringSource, options?: RenderToStringOptions): RenderToStringResult; type StaticAssetManifest = Record; interface StaticAssetManifestChunk { file: string; css?: readonly string[]; imports?: readonly string[]; } interface StaticAssetTags { modulePreloads: string[]; stylesheets: string[]; scripts: string[]; } interface ResolveStaticAssetOptions { manifest: StaticAssetManifest; entry: string; base?: string; } declare function resolveStaticAssets(options: ResolveStaticAssetOptions): StaticAssetTags; interface StaticRoute { path: string; source: RenderToStringSource; context?: Record; provides?: Provides; } interface StaticPage { path: string; html: string; body: string; styles: string[]; } interface StaticShellPage { path: string; body: string; styles: readonly string[]; assets: StaticAssetTags; context: Readonly>; } interface GenerateStaticSiteOptions { routes: StaticRoute[]; shell?: (page: StaticShellPage) => string; manifest?: StaticAssetManifest; clientEntry?: string; base?: string; } interface GenerateStaticSiteResult { pages: StaticPage[]; } declare function generateStaticSite(options: GenerateStaticSiteOptions): GenerateStaticSiteResult; interface StaticRouterOptions { routes: RouteRecord[]; paths: string[]; context?: (route: RouteLocationNormalized) => Record; provides?: (route: RouteLocationNormalized) => Provides; } declare function createStaticRoutesFromRouter(options: StaticRouterOptions): StaticRoute[]; export { createStaticRoutesFromRouter, generateStaticSite, renderToString, resolveStaticAssets }; export type { GenerateStaticSiteOptions, GenerateStaticSiteResult, RenderToStringOptions, RenderToStringResult, RenderToStringSource, ResolveStaticAssetOptions, StaticAssetManifest, StaticAssetManifestChunk, StaticAssetTags, StaticPage, StaticRoute, StaticRouterOptions };