import { Perf, PerfTimings } from './perf.js'; import prepareProcessStack from './prepareProcessStack.js'; import { ShortcodeDefinitions } from '../shortcodes/types.js'; import { QueryOptions, Stack, RequestObject, SettingsOptions, HydrateOptions, TErrors, Helpers } from './types.js'; import { RouteOptions, ProcessedRoutesObject } from '../routes/types.js'; interface SvelteCss { cssMap: string; css: string; } export interface IComponentToHydrate { name: string; hydrateOptions: HydrateOptions; client: any; props: false | any; id: string; prepared?: { clientPropsString?: string; clientPropsUrl?: string; propsString?: string; }; } declare class Page { uid: string; runHook: (string: any, Object: any) => Promise; next: () => void; resNext: () => void; shouldSkipRequest: boolean; allRequests: Array; request: RequestObject; settings: SettingsOptions; helpers: Helpers; data: Record; route: RouteOptions; query: QueryOptions; errors: TErrors; routes: ProcessedRoutesObject; processStack: ReturnType; perf: Perf; layoutHtml: string; templateHtml: string; cssString: string; svelteCss: Array; htmlString: string; head: string; headString: string; footerString: string; styleTag: string; bodyAttributesString: string; htmlAttributesString: string; bodyAttributesStack: Stack; htmlAttributesStack: Stack; moduleStack: Stack; moduleJsStack: Stack; headStack: Stack; cssStack: Stack; beforeHydrateStack: Stack; hydrateStack: Stack; customJsStack: Stack; footerStack: Stack; shortcodes: ShortcodeDefinitions; componentsToHydrate: IComponentToHydrate[]; timings: PerfTimings; constructor({ request, settings, next, query, helpers, data, route, runHook, allRequests, routes, errors, shortcodes, }: { request: any; settings: any; next?: () => void; query: any; helpers: any; data: any; route: any; runHook: any; allRequests: any; routes: any; errors: any; shortcodes: any; }); build(): Promise; html(): string | Promise; } export default Page;