import type { FormattingOptions } from '@/types'; export interface SetNumoraInputValueOptions { /** Maximum number of decimal places. Defaults to `DEFAULT_DECIMAL_MAX_LENGTH`. */ maxDecimals?: number; /** Formatting options (separators, locale, etc.). */ formattingOptions?: FormattingOptions; /** * When true (default), routes the write through `setRangeText` so the browser's * undo/redo history stays intact. Set to false only when the new value should *replace* * the entire undo history (e.g. form reset). */ undoable?: boolean; /** * When true (default), dispatches a synthetic `input` event after the write so React's * `_valueTracker` and other listeners stay in sync. */ dispatchEvent?: boolean; } /** * Programmatically sets the value of a Numora-managed `` element. * * Use this when you have a direct DOM reference (e.g. `ref.current` in React) and want * to apply a value without going through React's controlled-state machinery. The helper * formats the value through the same pipeline used by typing, preserves the undo stack * by default, and dispatches a synthetic `input` event so listeners see the change. * * @returns The formatted display string and the raw numeric string actually written. */ export declare function setNumoraInputValue(el: HTMLInputElement, value: string, options?: SetNumoraInputValueOptions): { formatted: string; raw: string; };