export interface UseValueProps<Value = string, InitialValue = Value> {
    initialValue?: InitialValue;
    defaultValue?: Value | string;
    formatter?: (v: Value) => Value;
    onChange?: (event: Event, value: Value) => void;
}
export declare function useValue<Value = string, InitialValue = Value>({ initialValue, onChange, defaultValue, formatter, }: UseValueProps<Value, InitialValue>): {
    value: Value;
    setValue: (newValue: Value, event?: Event) => void;
    resetValue: () => void;
};
