export interface StorePage { offset?: number; limit?: number; } export interface StoreListResult { items: T[]; total: number; } export interface CreateStoreOptions> { /** Property used as the primary key. Defaults to `id`. */ idKey?: keyof T & string; generateId?: () => string; } export interface Store> { list(filter?: Partial, page?: StorePage): StoreListResult; get(id: string): T | undefined; create(item: Partial & Record): T; update(id: string, patch: Partial): T | undefined; remove(id: string): boolean; reset(): void; all(): T[]; } /** * Small in-memory CRUD store for simulation handlers. * Independent of `ApiDefinition.data` — import and close over it in simulations. */ export declare const createStore: & { id?: string; }>(seed?: T[], options?: CreateStoreOptions) => Store; //# sourceMappingURL=store.d.ts.map