/** @see https://foxact.skk.moe/use-state-with-deps */
declare function useStateWithDeps<S extends Record<string, any> = Record<string, any>>(initialState: S): [
    snapshot: Readonly<S>,
    setState: (payload: Partial<S> | ((prevState: Readonly<S>) => Partial<S>)) => void
];

export { useStateWithDeps };
