/** * svelte-idb — createDB() Factory * * The primary entry point for the library. * Opens an IndexedDB connection, applies schema, creates typed Store instances. */ import type { DBSchema, DatabaseConfig, Database } from './types.js'; /** * Creates a typed IndexedDB database instance. * * @example * ```ts * const db = createDB({ * name: 'my-app', * version: 1, * stores: { * users: { keyPath: 'id', autoIncrement: true } * } * }); * * await db.users.add({ name: 'Alice' }); * ``` */ export declare function createDB(config: DatabaseConfig): Database;