import { type Ref } from "react"; import { type IconType } from "../@types/icon.js"; /** * @internal */ export interface IUiToolbarInputAccessibilityConfig { /** * Name of the value, for example "Width". Always the full name, never only the prefix letter. */ ariaLabel: string; /** * Spoken form of the unit, for example "pixels". Defaults to `unit`. */ unitLabel?: string; } /** * @internal */ export interface IUiToolbarInputProps { /** * The committed value as text, for example "120". */ value: string; /** * Called with the typed text on Enter and on blur. Escape reverts the typed text instead. * After a commit the field shows `value` again, so a parent that clamps or rejects the text * only has to keep `value` as it wants it. While `isInvalid` is true, the typed text stays. */ onCommit: (value: string) => void; /** * Called on ArrowUp and ArrowDown. `isLargeStep` is true while Shift is held. */ onStep?: (direction: 1 | -1, isLargeStep: boolean) => void; /** * A short text before the value that names it, for example "W". Use either `prefix` or * `prefixIcon`, not both. */ prefix?: string; /** * A 14px icon before the value that names it. Never a generic icon such as search. */ prefixIcon?: IconType; /** * The unit after the value, for example "px", "%" or "°". */ unit?: string; /** * Width of the field in pixels. Size it for the longest value in its range so the toolbar does * not move while typing. * @defaultValue 64 */ width?: number; isDisabled?: boolean; /** * Marks the typed text as not acceptable. * @defaultValue false */ isInvalid?: boolean; placeholder?: string; accessibilityConfig: IUiToolbarInputAccessibilityConfig; inputRef?: Ref; dataTestId?: string; } /** * A typable number field with an optional prefix and unit. The prefix stays on the left; the value * and the unit are aligned to the right. * * @internal */ export declare const UiToolbarInput: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=UiToolbarInput.d.ts.map