import type { Dispatch } from "../dependencies/types"; import type { StateDispatcher } from "../types"; /** * Creates a state that is synced with its parent state. * If the provided `state` changes, the returned `state` is set to that provided state. * Calls to the returned `setState(state)` also triggers a call to the optionally provided `setState(state)`. * * @param state The provided parent state. * @param setState The optional parent state udpater. * @returns The `[state, setState]` tuple. */ export declare function useSyncedState(value: T, setValue?: Dispatch): [T, StateDispatcher];