///
///
/**
* Returns a stateful like state with Ref, and a function to update it current value.
* can trigger update value without re-render
*
* @param value init value
* @param customUpdate you can custom you update method, or just set your `forceUpdate` to reuse same instance
* @returns an array with [ref, update]
*
* @example
* ```ts
* const [inputRef, updateInput] = useRefState(123);
*
* if(needReRender){
* updateInput(456); // trigger re-render
* } else {
* updateInput(456, false); // not trigger re-render
* }
* ```
*/
export declare const useRefState: (value: T, customUpdate?: (() => void) | undefined) => readonly [import("react").MutableRefObject, (toValue: T, isUpdate?: boolean) => void];