import { DatabasePromise, DatabaseOpts, SqliteError } from "@readest/turso-database-common";
declare class Database extends DatabasePromise {
    #private;
    constructor(path: string, opts?: DatabaseOpts);
    /**
     * 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.
 *
 * @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-bundle.d.ts.map