/** * 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"; /** An ask for the keyboard in one field of an entry's form. */ export interface FieldAsk { /** The entry's kind: its slot, or its record's key — whose session refuses it. */ readonly kind: string; /** The entry's key. */ readonly entry: string; /** The field, by its form's key. */ readonly field: string; /** Which ask it is: each later than the one before. */ readonly seq: number; } /** What an entry's form reads of its builder's asks. */ export interface FieldAsks { /** The ask standing, until a form answers it. */ readonly ask: FieldAsk | undefined; /** Says a form answered an ask: its entry's, or another's drawn anew. */ readonly answered: (seq: number) => void; } /** Provides a builder's asks to its entries' forms: the `asks` {@link useFieldAsks} gives. */ export declare const FieldAskProvider: import("react").Provider; /** * A builder's asks: the one standing, for its {@link FieldAskProvider}, and how an issue gone to asks. * * @returns The asks, and `request`: an issue gone to on its entry, asking for the field it names — an issue naming none * drops any ask standing */ export declare function useFieldAsks(): { readonly asks: FieldAsks; readonly request: (kind: string, entry: string, field: option) => void; }; /** * The field an issue gone to asks of an entry's form, for its `FieldForm`'s `focus` (see the module docs). * * @param kind - The entry's kind: its slot, or its record's key * @param entry - The entry's key * @param drawn - Whether the form is drawn with its row: `false` while the row is read, its fields placeholders — the * ask waits for it, and so does dropping another entry's * @returns The field, by its form's key, while its ask stands and the form is drawn — never in a phone's drawer */ export declare function useFieldAsk(kind: string, entry: string, drawn?: boolean): string | undefined; //# sourceMappingURL=field-ask.d.ts.map