/** * SQLite Adapter (better-sqlite3) * * Local database implementation matching D1's interface. * Uses better-sqlite3 for synchronous SQLite access. * * Note: This is a server-only module. Do not import in client code. * The tool recedes; SQLite works transparently like D1. */ import type { Database } from '../types.js'; /** * Create a local SQLite database matching the D1 interface. * * @param dbPath - Path to SQLite database file * @returns Database interface compatible with getPlatform() */ export declare function createLocalDatabase(dbPath: string): Promise; /** * Find local D1 database file in wrangler state directory. * * Wrangler stores local D1 databases in: * .wrangler/state/v3/d1/miniflare-D1DatabaseObject/ * * @param basePath - Base path to search (e.g., '.wrangler/state/v3/d1/miniflare-D1DatabaseObject') * @param databaseId - Optional specific database ID * @returns Path to SQLite file */ export declare function findLocalD1Path(basePath: string, databaseId?: string): Promise;