/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type option } from "@elaraai/east"; import { type SliceEditPopoverAnchor } from "@elaraai/east-ui-components"; /** Props of {@link QuerySavePopover}: what it hangs from — the toolbar's Save… (`trigger`), which its host renders, or the ⋯ chip (`anchor`) — and the rest. */ export type QuerySavePopoverProps = SliceEditPopoverAnchor & { /** Whether it is open. */ open: boolean; /** Opens or closes it — its trigger, ×, Esc, a click outside, Cancel, or a save that was made. */ onOpenChange: (open: boolean) => void; /** The open query's name — its head names it, and its name field offers it each time it opens. */ name: string; /** The names the other saved queries hold; the open query's own saved name is not among them. */ taken: ReadonlySet; /** The open query's description: `none` while it is the generated sentence, which the field then shows. */ description: option; /** The sentence generated from the steps (the model's `describeQuery`), `""` while no step is finished. */ generated: string; /** Saves the query under the name, with the description — `none` for the generated sentence — and resolves to what refused the save, or `undefined` once it is saved. */ onSave: (name: string, description: option) => Promise; /** A phone's view (QP34): its fields labelled, its head the drafts' count, its Save the Primary. */ phone?: boolean | undefined; /** How many drafts the session holds. */ pending?: number | undefined; }; /** * Renders the save popover — see the module docs. * * @param props - The query it saves, and the save * @returns The trigger or the anchor, and the popover while open */ export declare const QuerySavePopover: import("react").MemoExoticComponent<(props: QuerySavePopoverProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=save-popover.d.ts.map