/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { KeySearchSource } from "@elaraai/east-ui-components"; import type { PlanController } from "./controller/index.js"; import { type SourceHidden, type SourceHiding } from "../shared/schedule/hidden.js"; import type { PlanSourcePart } from "./root/sources.js"; import type { PlanWords } from "./words.js"; /** * Whether a search is this one, over the source the canvas pages: where the toolbar folds it first (`shell/Toolbar.tsx`). * * @param search - The Plan's search; `undefined` with none * @returns Whether it is {@link usePlanRowsFind}'s */ export declare function isPlanRowsFind(search: KeySearchSource | undefined): boolean; /** What {@link usePlanRowsFind} reads. */ export interface PlanRowsFindProps { /** The part of the source the canvas pages its rows from; `undefined` with none, or over inline rows: no box. */ readonly part: PlanSourcePart | undefined; /** The hidden pick over it. */ readonly pick: SourceHidden; /** Clears what hides a row, saying so where the Plan says a gesture's error; `false` where it could not. */ readonly clear: (hidden: readonly SourceHiding[] | undefined) => boolean; /** The canvas's controller: what goes to the row. */ readonly controller: PlanController; /** The canvas's words. */ readonly words: PlanWords; /** Says why a pick could not go to its row; `undefined` as the next begins. */ readonly onError: (words: string | undefined) => void; } /** * Search Records' source over the source the canvas pages — see the module docs. * * @param props - The source's part, its hidden pick, the clear, the controller, the words and where an error is said * @returns The source; `undefined` with no part */ export declare function usePlanRowsFind({ part, pick, clear, controller, words, onError }: PlanRowsFindProps): KeySearchSource | undefined; //# sourceMappingURL=find.d.ts.map