import type { Ref } from 'vue'; export type UpdateFunction = (nextState?: T) => T; export declare function useState(initialState: T | UpdateFunction): readonly [Readonly, import("vue").DeepReadonly>>, (newState: T | UpdateFunction) => void];