/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ type Styles = Record>; /** The strip's form, as the toolbar folds it (#952). */ export interface SheetTabsFold { /** How many trailing tabs fold into the `+n` menu — the active tab never does. */ folded: number; /** Past its fold, how far the strip closes up: `compact` drops the * `+ TAB` label and the whole-sheet count, `capped` caps the tab names * at 72px as well, `closed` closes the gaps and drops every count; * `menu` (#1221) folds it into one chip, the open view's, whose menu * holds every view, `+ TAB` and the open view's close; and `search` * (#1345) is the views as the key search's popover holds them, once the * chip folds into it: every view a choice, then `+ TAB` and the open * view's close; `phone` is a phone's frame's strip (see the module docs). */ strip?: "compact" | "capped" | "closed" | "menu" | "search" | "phone" | undefined; /** In the key search's popover: closes it once a view is picked, made or closed there, as the chip's menu closes. */ onDone?: (() => void) | undefined; } /** One tab's facts. */ export interface SheetTabView { id: string; name: string; /** Rows the view's narrowing matches, live. */ count: number | undefined; /** The hover title — the query and the gestures. */ title: string; } export interface SheetTabsProps { styles: Styles; views: readonly SheetTabView[]; /** The pinned whole-sheet tab's count — the planned rows. */ wholeCount: number | undefined; /** The active view's id; `null` = the whole sheet. */ active: string | null; /** The active view's narrowing differs from the slice's. */ dirty: boolean; /** Whether a query is set — the `+ TAB` title. */ hasQuery: boolean; /** Whether any choice narrows the sheet — a query, a value, a range: what a phone's strip offers `+ TAB` over on the whole sheet. */ narrowed?: boolean | undefined; renaming: string | null; renameVal: string; /** The element the tabs switch — the sheet's grid (`aria-controls`). */ panelId?: string | undefined; /** The strip's form, as the toolbar folds it — nothing folded by default. */ fold?: SheetTabsFold | undefined; /** Whether a run of the optimiser has just landed (#1409): the open tab's count flashes once with its cascade. */ flash?: boolean | undefined; onSwitch: (id: string | null) => void; onCreate: () => void; onClose: (id: string) => void; onRenameStart: (id: string) => void; onRenameChange: (val: string) => void; onRenameCommit: () => void; onRenameCancel: () => void; onReorder: (id: string, to: number) => void; } /** Renders the tab strip. */ export declare const SheetTabs: import("react").MemoExoticComponent<(props: SheetTabsProps) => import("react/jsx-runtime").JSX.Element>; export {}; //# sourceMappingURL=Tabs.d.ts.map