/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { QueryRoot } from "./one-shot.js"; import type { QueryOpen } from "./open-query.js"; import type { PartStyles } from "./parts.js"; import type { SavedQueries, SavedQuery } from "./session.js"; export interface LibraryTabProps { /** The saved queries. */ readonly record: SavedQueries; /** This viewer's recent runs, the most recent first. */ readonly recent: readonly SavedQuery[]; /** The root the builder's data sources make. */ readonly root: QueryRoot; /** The open query. */ readonly open: QueryOpen; /** Opens a saved query. */ readonly onOpenSaved: (name: string) => void; /** Opens a recent run never saved, as a new query begun as it. */ readonly onOpenRun: (run: SavedQuery) => void; /** The tab's library's id. */ readonly id: string; /** The parts' styles, and the words. */ readonly ps: PartStyles; /** Where the library keeps its state. */ readonly storageKey: string; /** A phone's builder's width: each description two lines at most, ending on a whole word (QP36). */ readonly phoneWidth?: number | undefined; } /** * Renders the Library tab — see the module docs. * * @param props - The saved queries, the recent runs, the root, the open query and what a click does ({@link LibraryTabProps}) * @returns The tab's notice, and its library */ export declare const LibraryTab: import("react").MemoExoticComponent<({ record, recent, root, open, onOpenSaved, onOpenRun, id, ps, storageKey, phoneWidth }: LibraryTabProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=library-tab.d.ts.map