import { Application } from 'express'; import { SynthOSConfig } from "../init"; import { Customizer } from "../customizer"; import { ContextSection, SectionMode } from "../builders"; /** * Resolve each section to either its full content or its sketch (or skip it * entirely) based on the section's `mode`, the classifier's `expand` set, and * whether this is the initial build (`newBuild`). * * Per `docs/specs/page-section-sketch-full.md`: * - 'always-full' → always render full content. * - 'classifier-decides' → render full when title is in `expand`, else sketch. * - 'always-omit-when-empty' → skip entirely when sketch is null; otherwise * render full when in `expand`, else sketch. * - `forceFullOnInitial` on a section forces full content on the first build * regardless of `expand`. */ export declare function assembleSections(sections: ContextSection[], expand: ReadonlySet, newBuild: boolean): ContextSection[]; /** Apply per-page section-mode overrides from page metadata. */ export declare function applySectionModeOverrides(sections: ContextSection[], overrides?: Record): ContextSection[]; export declare function usePageRoutes(config: SynthOSConfig, app: Application, customizer?: Customizer): void; export declare function loadPageWithFallback(page: string, config: SynthOSConfig, reset: boolean): Promise; //# sourceMappingURL=usePageRoutes.d.ts.map