import { type ReactNode, type RefObject } from "react"; /** * In the macOS app the sidebar toggle sits in the window bar, just right of * the traffic lights, as in native Mac apps, and each page's title line is the * bar's row beside it. The toggle starts clear of the wider badge macOS swaps * in for the traffic lights while the window is shared or recorded (about 80px * across), so it stays put in full screen too. */ export declare const SIDEBAR_TOGGLE_IN_WINDOW_BAR: boolean; /** * Whether a page's title line is the window bar's row: only in the macOS app, * in the docked (not mobile) layout. Everywhere else, the web app included, * pages keep their header in the canvas. */ export declare function windowBarRowActive(options: { platform: string | null | undefined; mobile: boolean; }): boolean; /** * Controls drawn in the desktop window bar, above the page and its drag * region (`z-[46]`, one above the bar's 45), centred on the traffic lights' * line (`--og-window-controls-center`; from the top if they don't fit above * it), from `--og-window-bar-controls-left`. Rendered into a host at the start * of the body, so no rail or canvas stacking context can put them under the * bar, and they come first in the tab order, as the bar comes first on screen. */ export declare function WindowBarControls({ children }: { children: ReactNode; }): import("react").ReactPortal | null; /** * The sidebar's collapse toggle: a panel icon in the window bar, chevrons in * a rail's own header. */ export declare function SidebarToggleButton({ collapsed, onToggle, inWindowBar, shortcut, }: { collapsed: boolean; onToggle: () => void; inWindowBar: boolean; /** Whether the app's sidebar shortcut toggles this sidebar (it doesn't outside a workspace). */ shortcut?: boolean; }): import("react").JSX.Element; /** * A page's title line in the window bar's row, as a chat's header is: the * same height, type and padding, from the canvas's left edge. Its text is the * page's title, which the page's own header (`PageHeader`) then doesn't * repeat. Render it as the canvas's first child, with `data-window-bar-row` * on the canvas (`useWindowBarRow`). */ export declare function WindowBarTitle({ copyable, children, }: { /** A title worth copying (a Site's): right-click it for Copy title. */ copyable?: boolean; children: ReactNode; }): import("react").JSX.Element; /** * The window bar's row for a page's canvas: while `active`, the canvas is the * bar's row (`data-window-bar-row` on it, from `rowProps`, with its left edge * kept for the row). Wrap the canvas's content in `WindowBarPageTitle` to draw * the page's title there. */ export declare function useWindowBarRow(canvasRef: RefObject, active: boolean): { "data-window-bar-row"?: ""; }; /** * While `enabled`, draws the page's title line in the window bar's row (as * the canvas's first child) and lets the first page header below with a * title claim it (headers in a `WindowBarTitleBoundary fallback` only when no * other has one); `fallbackTitle` stands in until one does. Always rendered, * so turning it on or off never remounts the page. */ export declare function WindowBarPageTitle({ enabled, fallbackTitle, children, }: { enabled: boolean; fallbackTitle?: ReactNode; children: ReactNode; }): import("react").JSX.Element;