import type { Breadcrumb } from './Breadcrumbs.js'; import { HeaderActionsFit } from './headerActionsFit.js'; export type PageHeaderRegion = 'titleActions' | 'actions' | 'toolbar'; /** The nodes a declaration portals its regions into. They are created with the * declaration, before any bar exists, so its content renders on the first pass * and keeps its state when the bar unmounts or moves. */ export type RegionNodes = Readonly>; export interface Declaration { breadcrumbs: readonly Breadcrumb[] | undefined; /** Whether the trail's last crumb is the page's `h1`. */ heading: boolean; hidden: boolean; nodes: RegionNodes | null; fills: Readonly>; } export interface PageHeaderSnapshot { breadcrumbs: readonly Breadcrumb[]; /** Whether the trail's last crumb is the page's `h1`, as the page whose trail it is says. */ heading: boolean; hidden: boolean; titleActions: readonly HTMLElement[]; actions: readonly HTMLElement[]; toolbar: readonly HTMLElement[]; } export declare function sameCrumbs(a: readonly Breadcrumb[] | undefined, b: readonly Breadcrumb[] | undefined): boolean; /** * Holds what each mounted PageHeader declares, keyed by its render order. The * bar reads one merged snapshot through useSyncExternalStore, so a page * changing its header re-renders the bar alone, never the app under the * provider. */ export declare class PageHeaderStore { /** Which of the declared actions the bar has moved into its "…" menu. */ readonly actionsFit: HeaderActionsFit; private declarations; private listeners; private snapshot; subscribe: (listener: () => void) => (() => void); getSnapshot: () => PageHeaderSnapshot; set(order: number, declaration: Declaration): void; delete(order: number): void; private publish; }