import type { DocsPageView } from '../core/index.js'; /** A live read of the page view: `view` re-reads the shell's `$derived`. */ export type DocsPageContext = { readonly view: DocsPageView; }; /** * Publish the page view. `DocsShell` calls this once, with a getter rather than * a value, so readers see the current `$derived` rather than the one that * existed at init. */ export declare function setDocsPage(view: () => DocsPageView): void; /** * Read the page view. `getContext` only works during init, so this hands back * an accessor rather than a snapshot: hold it at init, read `.view` where the * value is used, and the read stays reactive. * * Throws outside `DocsShell`. Every caller is internal chrome the shell renders * itself, so an absent context is a wiring bug, not a supported mode. */ export declare function useDocsPage(): DocsPageContext;