interface UseMergeValueOptions { value?: T; onChange?: (value: T) => void; } /** * A custom hook that manages a component's internal state while allowing * the use of an externally controlled value (`value` and `onChange`) if provided. * * @template T The type of the state. * @param defaultValue The initial default value if a controlled `value` is not provided. * @param options Options for providing a controlled `value` and an `onChange` handler. * @returns A tuple with the current state and the function to update it. */ export declare function useMergeValue(defaultValue: T, options?: UseMergeValueOptions): [T, (newValue: T) => void]; export {}; //# sourceMappingURL=use-merge-value.d.ts.map