import { type ReactNode } from "react"; /** * The desktop window bar's title line, when the page's shell draws one (the * macOS app): the first page header below claims it with its title, which is * then shown in the bar, and keeps its heading only for assistive tech, so the * title isn't shown twice. Provided by the shells (`useWindowBarRow`). */ export declare const PageHeaderWindowBarContext: import("react").Context<{ /** * A header's title, or null while it has none to show; keeps its place. A * fallback claim shows only while no other header has a title. A copyable * title (a Site's) can be right-clicked in the bar to copy it; others stay * part of the bar's drag region. */ set(id: string, title: string | null, fallback?: boolean, copyable?: boolean): void; release(id: string): void; /** The header whose title the bar shows. */ owner: string | null; } | null>; /** * Headers inside an overlay (a dialog or sheet) never take the window bar: * the overlays' content wraps its children in this. * * With `fallback`, headers inside take the bar only while no other header has * a title: a page that stays mounted, hidden, under the pages it opens (the * Capabilities catalog) names the bar until an open page names it, including * while that page is loading or has no header. */ export declare function WindowBarTitleBoundary({ fallback, children, }: { fallback?: boolean | undefined; children: ReactNode; }): import("react").JSX.Element; /** * Claims the window bar for `title`. With `fallback`, the claim yields to any * other header with a title, as headers in a `WindowBarTitleBoundary fallback` * do: a page that stays mounted under a page it opens keeps naming the bar * only until that page names it. Inside a fallback boundary every claim is a * fallback already, so there the first one keeps the bar. */ export declare function useWindowBarTitle(title: ReactNode, fallback?: boolean, { copyable }?: { copyable?: boolean; }): boolean;