/** * What a block is in the reference's page hierarchy. * * This is the *page* hierarchy, not the DOM. An operation is an `operation` * whether or not a tag happens to wrap it, which is why levels cannot be * derived from nesting depth. */ export type OutlineRole = 'document' | 'tag' | 'channel' | 'channelMessages' | 'asyncApiOperation' | 'modelGroup' | 'operation' | 'model' | 'channelMessage' | 'message' | 'operationSection'; /** Valid heading levels, matching the tags `h1` through `h6`. */ export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6; /** * Declare the role at the top of this page. * * Called by a component that renders two or more blocks alongside each other * and therefore owns the relationship between them — `Content` renders the * info block above the tags and operations, so it anchors the outline at * `document` and everything below resolves against that. * * A block rendered on its own needs no call: it anchors itself. */ export declare const provideDocumentOutline: (role: OutlineRole) => void; /** * The heading level for a block's own heading. * * A block assumes it is the top of the page — rendered on its own it is the * `h1`, and the blocks it contains follow beneath it. Rendering it inside a * composed outline overrides that, so the same component is an `h3` in a full * reference and an `h1` on a page that shows only that operation. */ export declare const useDocumentOutline: (role: OutlineRole) => { level: HeadingLevel; }; //# sourceMappingURL=use-document-outline.d.ts.map