import { DatabasePromise, NativeDatabase, DatabaseOpts, SqliteError } from "@sivukhin/database-common";
declare class Database extends DatabasePromise {
    path: string | null;
    constructor(db: NativeDatabase, fsPath: string | null, opts?: DatabaseOpts);
    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.d.ts.map