/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type ToolbarItem } from "@elaraai/east-ui-components"; import { type QueryWords } from "./model/words.js"; import { type DownloadFormat, type ResultView } from "./results.js"; import type { RunState } from "./run.js"; /** What a phone's first row holds, and does. */ export interface PhoneToolbarOptions { readonly history: ToolbarItem; readonly state: RunState; readonly view: ResultView | undefined; /** The count of the result kept under a run that gave none (5e). */ readonly keptCount: string | undefined; readonly onView: (view: ResultView) => void; /** The result's views this builder offers, in the switch's order: Table · Tree shows only where there are two. */ readonly views: readonly ResultView[]; readonly onDownload: (format: DownloadFormat) => void; readonly onRun: () => void; /** The query's name. */ readonly name: string; /** The builder's width, px. */ readonly width: number; readonly words: QueryWords; } /** * A phone's first row (QP1): the history for the second row, and one item of * Table · Tree, the count line and Run. * * @param options - What the row holds ({@link PhoneToolbarOptions}) * @returns The items */ export declare function phoneQueryToolbar(options: PhoneToolbarOptions): ToolbarItem[]; /** Props of {@link QueryLiveBand}. */ export interface QueryLiveBandProps { readonly text: string; /** A save's notice, its mark the success ink's. */ readonly saved: boolean; readonly onDismiss: () => void; readonly words: QueryWords; } /** * The band over the pane strip (QP16): one notice until another replaces it or * × dismisses it. It describes main, so a pane's view covers it. * * @param props - The notice ({@link QueryLiveBandProps}) * @returns The band */ export declare const QueryLiveBand: import("react").MemoExoticComponent<({ text, saved, onDismiss, words }: QueryLiveBandProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=phone.d.ts.map