import { z } from "zod"; type StateManagerStorageKeys = "accountState"; declare const storageSchema: { accountState: z.ZodObject<{ nonce: z.ZodEffects; balance: z.ZodEffects; idHash: z.ZodEffects; currentNote: z.ZodEffects; currentNoteIndex: z.ZodOptional, z.ZodUndefined]>>; storageSchemaVersion: z.ZodNumber; }, "strip", z.ZodTypeAny, { idHash: bigint; nonce: bigint; balance: bigint; currentNote: bigint; storageSchemaVersion: number; currentNoteIndex?: bigint | undefined; }, { idHash: string; nonce: string; balance: string; currentNote: string; storageSchemaVersion: number; currentNoteIndex?: string | undefined; }>; }; interface InjectedStorageInterface { getItem: (key: string) => Promise; setItem: (key: string, value: string) => Promise; } interface StorageInterface { getItem: (key: K) => Promise | null>; setItem: (key: K, value: z.infer<(typeof storageSchema)[K]>) => Promise; } declare const createStorage: (injectedStorage: InjectedStorageInterface) => StorageInterface; export default storageSchema; export { type StateManagerStorageKeys, StorageInterface, InjectedStorageInterface, createStorage };