/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import { type CheckJqResult } from "@elaraai/east"; import { type SummaryCache } from "./model/summaries.js"; import type { QueryRoot } from "./one-shot.js"; import type { PartStyles } from "./parts.js"; /** Props of {@link JqEditor}. */ export interface JqEditorProps { /** The jq as typed. */ readonly text: string; /** Its check: east's checker over the root. */ readonly checked: CheckJqResult; /** The root: what completions offer, and what the text is read as steps over. */ readonly root: QueryRoot; /** The builder's summaries: the values completions offer, where one is held. */ readonly summaries: { readonly cache: SummaryCache; readonly hashes: ReadonlyMap; }; /** The parts' styles, and the words. */ readonly ps: PartStyles; /** Told each change of the text. */ readonly onText: (text: string) => void; /** Told the focus left the editor: the jq typed, one gesture. */ readonly onLeave: () => void; /** Told a fix taken: the text it makes, and its label — one gesture of its own. */ readonly onFix: (text: string, label: string) => void; /** A phone's: lines wrap, a number on each first row, completions docked, no keys told of (QP30–QP32). */ readonly phone?: boolean | undefined; } /** * Renders the jq view's editor — see the module docs. * * @param props - The text and its check, the root, the summaries, the words and what it tells ({@link JqEditorProps}) * @returns The editor */ export declare const JqEditor: import("react").MemoExoticComponent<({ text, checked, root, summaries, ps, onText, onLeave, onFix, phone }: JqEditorProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=jq-editor.d.ts.map