import { type ChangeEvent, type FocusEvent } from "react"; /** * Returns a stable function that builds a synthetic change event for an input with a given value. * Use when calling onChange from code (e.g. clear, apply, clamped value) so consumers * that use `onChange={e => setValue(e.target.value)}` still receive the expected shape. * * @example * const createInputChangeEvent = useCreateInputChangeEvent(); * onChange?.(createInputChangeEvent(str, inputRef.current)); */ export declare const useCreateInputChangeEvent: () => ((value: string, sourceInput: HTMLInputElement | null) => ChangeEvent); /** * Returns a stable function that builds a synthetic blur (FocusEvent) for an input with a given value. * Use when calling onBlur from code (e.g. when a typed-in value is normalized on blur) so consumers * that use `onBlur={e => doSomething(e.target.value)}` still receive the expected shape. * * @example * const createInputBlurEvent = useCreateInputBlurEvent(); * onBlur?.(createInputBlurEvent(canonicalValue, inputRef.current)); */ export declare const useCreateInputBlurEvent: () => ((value: string, sourceInput: HTMLInputElement | null) => FocusEvent);