askexperts
Version:
AskExperts SDK: build and use AI experts - ask them questions and pay with bitcoin on an open protocol
23 lines (22 loc) • 711 B
TypeScript
import { Command } from "commander";
import { DocstoreCommandOptions } from "./index.js";
/**
* Options for the server command
*/
interface ServerCommandOptions extends DocstoreCommandOptions {
port?: number;
host?: string;
origin?: string;
}
/**
* Start a DocStoreSQLiteServer
* @param options Command options
*/
export declare function startServer(options: ServerCommandOptions): Promise<void>;
/**
* Register the server command
* @param docstoreCommand The parent docstore command
* @param addCommonOptions Function to add common options to command
*/
export declare function registerServerCommand(docstoreCommand: Command, addCommonOptions: (cmd: Command) => Command): void;
export {};