UNPKG

askexperts

Version:

AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol

21 lines (20 loc) 702 B
import { DB } from "./index.js"; import { DBRemoteClient } from "./DBRemoteClient.js"; import { DBInterface } from "./interfaces.js"; /** * Get the singleton DB instance * @returns The DB instance */ export declare function getDB(): DB; /** * Create a DB remote client instance * @param url URL for remote DB client * @returns A DB remote client instance */ export declare function createDBRemoteClient(url: string): Promise<DBRemoteClient>; /** * Create a DB client instance * @param url Optional URL for remote DB client * @returns A DB client instance (DBClient if url is undefined, DBRemoteClient otherwise) */ export declare function createDBClient(url?: string): Promise<DBInterface>;