/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ type Styles = Record>; /** Where the input goes once it writes: back to its cell (Enter), nowhere (a blur), or along the row. */ export type PlanCellInputMove = "stay" | "leave" | "next" | "previous"; /** Props of {@link PlanCellInput}. */ export interface PlanCellInputProps { /** The Plan recipe's styles. */ styles: Styles; /** Its column's left edge, as a window fraction — none inside a popover, which places it. */ x0?: number | undefined; /** Its column's right edge, as a window fraction. */ x1?: number | undefined; /** The text it opens on: the cell's value as its format reads it. */ text: string; /** A key that opened it, typed in place of the text. */ seed: string | undefined; /** The values are whole numbers: a fraction is refused. */ whole: boolean; /** Its accessible name. */ name: string; /** What a text reads as: a number, `undefined` for none (the cell cleared), `null` for no number. */ read: (text: string) => number | null | undefined; /** It wrote a number, or cleared the cell, and moves on. */ onWrite: (value: number | undefined, move: PlanCellInputMove, input: HTMLElement) => void; /** It closed with the cell as it was: Esc. */ onCancel: (input: HTMLElement) => void; /** It is drawn in a popover anchored to its cell, which places it. */ popover?: boolean | undefined; } /** Renders the canvas's input over a table cell. */ export declare function PlanCellInput({ styles, x0, x1, text, seed, whole, name, read, onWrite, onCancel, popover }: PlanCellInputProps): import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=CellInput.d.ts.map