export declare const createState: (namespace: string, transient: boolean) => { addExtensionState: >(scope: string, createState: (args: { persist: (value: U) => U; }) => T) => T; getScopedState: , NonPartial extends boolean = false>(scope: string) => { readonly state: NonPartial extends true ? T_1 : Partial; }; removeScopedState: (scope: string) => void; persistState: (scope?: string) => void; state: Record>; };