import { a as QueryParams, c as ResourceType, i as GetParams, o as PagedQueryResponseMap, r as AbstractStorage, s as ResourceMap } from "../config-BqgYQFsl.mjs"; import { CustomObject, Project } from "@commercetools/platform-sdk"; //#region src/storage/sqlite.d.ts type SQLiteStorageOptions = { /** * Path to the SQLite database file. * Defaults to `commercetools-mock.db` in the current working directory. * Use `':memory:'` for an in-memory database. */ filename?: string; }; declare class SQLiteStorage extends AbstractStorage { private db; private _knownProjects; private _stmtInsertProject; private _stmtGetProject; private _stmtUpsertProject; private _stmtInsertResource; private _stmtGetResource; private _stmtGetResourceByKey; private _stmtAllResources; private _stmtDeleteResource; private _stmtClearResources; private _stmtGetResourceByContainerAndKey; private _stmtCountResources; constructor(options?: SQLiteStorageOptions); /** * Close the database connection. Call this when you're done using the storage. */ close(): void; private get stmtInsertProject(); private get stmtGetProject(); private get stmtUpsertProject(); private get stmtInsertResource(); private get stmtGetResource(); private get stmtGetResourceByKey(); private get stmtAllResources(); private get stmtCountResources(); private get stmtDeleteResource(); private get stmtClearResources(); private get stmtGetResourceByContainerAndKey(); private ensureProject; addProject(projectKey: string): Promise; getProject(projectKey: string): Promise; saveProject(project: Project): Promise; clear(): Promise; all(projectKey: string, typeId: RT): Promise; count(projectKey: string, typeId: ResourceType): Promise; add(projectKey: string, typeId: RT, obj: ResourceMap[RT], params?: GetParams): Promise; get(projectKey: string, typeId: RT, id: string, params?: GetParams): Promise; getByKey(projectKey: string, typeId: RT, key: string, params?: GetParams): Promise; delete(projectKey: string, typeId: RT, id: string, params?: GetParams): Promise; getByContainerAndKey(projectKey: string, container: string, key: string): Promise; query(projectKey: string, typeId: RT, params: QueryParams): Promise; } //#endregion export { SQLiteStorage, SQLiteStorageOptions }; //# sourceMappingURL=sqlite.d.mts.map