import type { SetStateAction } from 'react'; export interface Options { defaultValue?: T; defaultValuePropName?: string; valuePropName?: string; trigger?: string; } export type Props = Record; export interface StandardProps { value: T; defaultValue?: T; onChange: (val: T) => void; } declare function useControllableValue(props: StandardProps): [T, (v: SetStateAction) => void]; declare function useControllableValue(props?: Props, options?: Options): [T, (v: SetStateAction, ...args: any[]) => void]; export default useControllableValue;