/** src\lib\scripts\idbqlCore\idbqlSchema.ts * Represents a schema for IndexedDB. */ /** * Represents a schema for IndexedDB. */ export declare class Schema { /** * Creates an object store in the database. * @param db - The IDBDatabase instance. * @param storeName - The name of the object store. * @param keyPath - The key path for the object store. * @param autoIncrement - Indicates whether the object store should have auto-incrementing keys. Default is false. * @returns The created object store or null if creation fails. */ createStore(db: IDBDatabase, storeName: string, keyPath: string, autoIncrement?: boolean): IDBObjectStore | null; /** * Creates the schema in the database. * @param db - The IDBDatabase instance. * @param storeListFields - An object containing the store names and their field configurations. * @returns A promise that resolves to an array of store names and their key paths. */ createSchema(db: IDBDatabase, storeListFields: Record): Promise>; /** * Cleans the index name by removing special characters. * @param indexName - The index name to clean. * @returns The cleaned index name. */ private cleanIndexName; /** * Creates an index in the object store. * @param store - The IDBObjectStore instance. * @param indexName - The name of the index. * @param keyPath - The key path for the index. */ private createIndexes; }