import type { ReactNode } from 'react'; import { type Breadcrumb } from './Breadcrumbs.js'; export type { Breadcrumb } from './Breadcrumbs.js'; /** * Holds the header the current page declares, for the `PageHeaderBar` the * shell renders. Wrap the shell, above both the bar and the routes. */ export declare function PageHeaderProvider({ children }: { children: ReactNode; }): import("react").JSX.Element; export interface PageHeaderProps { /** The trail to this page, ending with the page itself, which becomes its * `h1`. A crumb with an empty label, such as a name still loading, shows a * placeholder. */ breadcrumbs?: readonly Breadcrumb[] | undefined; /** False keeps the last crumb out of the page's outline, for a page whose `h1` is in its * body, such as a title field or a section's heading: the crumb still says it is the * current page, and the page has one `h1`. */ heading?: boolean | undefined; /** Beside the title: actions on the page's subject, such as edit, rename or * favorite, or its `PageHeaderMenu`. */ titleActions?: ReactNode; /** At the end of the bar: the page's commands, such as Save or "+ Create". */ actions?: ReactNode; /** A row under the bar, such as tabs or a time range, that stays put while * the page scrolls. */ toolbar?: ReactNode; /** Takes the bar away, for a page that fills the window. */ hidden?: boolean | undefined; } /** * Declares the page's header: its breadcrumbs, title actions, actions and * toolbar. Under a `PageHeaderProvider` it renders nothing in place: the * shell's `PageHeaderBar` shows it, while the actions stay in the page's React * tree, with its context and state. Without a provider it renders the bar * itself, for a page with no shell, with no fill of its own, so it shows the * surface it sits on. A host that pins it gives its pinned wrapper the page's * surface, so content scrolling under it is covered. * * Any component may render one, such as a form adding its Save button: the bar * shows the actions of all of them, outermost first, and the trail of the last * one rendered that has one, so a page's trail replaces its layout's. */ export declare function PageHeader(props: PageHeaderProps): import("react").JSX.Element | null; export interface PageHeaderBarProps { /** A shorter bar, for a page that gives the window to an embedded app. */ compact?: boolean | undefined; /** Keep the bar when the page declares nothing, such as on a narrow screen * where it holds the navigation toggle. A page's `hidden` still wins. */ persistent?: boolean | undefined; className?: string | undefined; } /** * The bar showing what the current page declares with `PageHeader`. The shell * renders one, inside a `PageHeaderProvider`, wherever its chrome puts it. It * renders nothing while the page declares nothing. */ export declare function PageHeaderBar({ compact, persistent, className, }: PageHeaderBarProps): import("react").JSX.Element | null;