export type CartStore = { read(): T[]; write(items: T[]): void; add(item: T): void; clear(): void; subscribe(listener: () => void): () => void; getSnapshot(): T[]; }; /** * Create a cart store for a localStorage key. Pass `normalize` to migrate or * validate persisted items on read (e.g. drop legacy shapes, re-price). */ export declare const createCartStore: (key: string, normalize?: (raw: unknown) => T[]) => CartStore;