import { DatabasePromise, DatabaseOpts, SqliteError } from "@readest/turso-database-common";
declare class Database extends DatabasePromise {
    #private;
    constructor(nativeDb: any, initThreadPool: () => Promise<void>);
    /** connect database and pre-open necessary files in the OPFS */
    connect(): Promise<void>;
    /** close the database and relevant files */
    close(): Promise<void>;
}
/**
 * Creates a new database connection asynchronously.
 *
 * Init (WASM decode + worker spawn) is deferred to the first call so this
 * entry point is safe to import from a non-async-capable module wrapper —
 * unlike the default entry, which awaits at module top level.
 *
 * @param {string} path - Path to the database file.
 * @param {Object} opts - Options for database behavior.
 * @returns {Promise<Database>} - A promise that resolves to a Database instance.
 */
declare function connect(path: string, opts?: DatabaseOpts): Promise<Database>;
export { connect, Database, SqliteError };
//# sourceMappingURL=promise-webpack.d.ts.map