import { CoerceURI } from '@adviser/cement';
import { Database, bs } from '@fireproof/core';

type ConnectFunction = (db: Database, name?: string, url?: string) => bs.Connection;

declare const rawConnect: ConnectFunction;
declare function connect(db: Database, remoteName?: string, dashboardURI?: CoerceURI, remoteURI?: CoerceURI): Promise<bs.Connection>;

export { connect, rawConnect };
declare module '@fireproof/cloud'
