/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type IconDefinition } from "@fortawesome/free-solid-svg-icons"; /** A segment strip's props — shared by the strip and its one-chip menu. */ interface SegProps { /** What the strip picks — its radio group's (the menu's) accessible name. */ label: string; /** Which strip it is, as `data-plan-seg` (`data-plan-segmenu`) says. */ name: string; /** Host name for DOM measurements. */ scope?: string; /** The segments, in order. */ items: ReadonlyArray<{ key: K; label: string; disabled?: boolean | undefined; hint?: string | undefined; icon?: IconDefinition | undefined; }>; /** The checked segment's key — any other string checks none. */ active: string; /** Fills the available strip width with equal segments; folded menus keep their intrinsic size. */ fullWidth?: boolean; /** Each segment that has an icon shows its icon alone, named by its label: a row short of room's narrower strip. */ iconsOnly?: boolean; /** Picks a segment. */ onPick: (key: K) => void; } /** * The compact chrome segment strip (`seg` recipe) — a radio group (#632). * It is ONE tab stop, on the checked segment (the first while none is); * ← / → and Home / End move between the segments and pick the one they land * on, as the WAI-ARIA radio group pattern has it, and a click, Enter or Space * picks the one it is on. */ export declare function Seg({ label, name, scope, items, active, fullWidth, iconsOnly, onPick }: SegProps): import("react/jsx-runtime").JSX.Element; /** * A segment strip folded into one chip (#952) — the checked segment and a * caret, Font Awesome's (#1263), opening a menu of every segment; picking one * does what the strip's press does. The toolbar's segments take this form * once the row is short of room. */ export declare function SegMenu({ label, name, scope, items, active, onPick }: SegProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=segments.d.ts.map