import * as React from 'react'; import type { GlobalData, CachedPageData, ResolvedPageData, RenderPagePayload } from '../../types/index.js'; export declare let globalData: GlobalData | undefined; export declare let initLocale: string | undefined; export declare function getSharedData(id: string): Promise; export declare function useRefresh(): void; export declare class Loader { static markdocComponents: Record; static updateTemplate(route: string, mod: unknown, templateId: string): Promise; static update(route: string): Promise; static updateSharedData(id: string): Promise; static addGlobalDataListener(fn: (...args: any[]) => void): void; static removeGlobalDataListener(fn: (...args: any[]) => void): void; static updateGlobalData(data: GlobalData): void; static tryLoad(route: string, skipCache?: boolean, search?: string): Promise; static loadDynamicMarkdocComponents(name: string): Promise; static load(route: string, skipCache?: boolean, search?: string): Promise; static loadSync(route: string): ResolvedPageData | undefined; static prepare(page: RenderPagePayload, sharedData: Record, _globalData: GlobalData, _initLocale: string): Promise; /** * @returns a template or null if there is a compilation error in develop mode */ static loadTemplate(templateId: string): Promise | null>; static clear(): void; } //# sourceMappingURL=loader.d.ts.map