import Adapter from "./adapters/Adapter"; import JabTable from "./JabTable"; export default class JabDB { private adapter; private meta; constructor(adapter: Adapter, meta?: JabDBMeta); connect(): Promise; /** * Get a table from the database. * @param id The id of the table to search for * @returns {Promise} The table found, as a promise. The promise is * rejected if the table was not found */ getTable(id: string): Promise; /** * Create a new table in the database * * @param {string} id The id of the table to create * @param {boolean} [returnIfAlreadyExists=true] If `returnIfAlreadyExists` is set to `true`, * then the function returns the existing table, if it has the same id. * @returns {Promise} Returns the table as a {@link JabTable} Promise. * @memberof JabDB */ createTable(id: string, returnIfAlreadyExists?: boolean): Promise; /** * Delete a table from the database * * @param {string} id the name/id of the table to delete * @returns {Promise} * @memberof JabDB */ deleteTable(id: string): Promise; } export declare class JabDBMeta { }