UNPKG

askexperts

Version:

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

15 lines (14 loc) 561 B
import { Command } from "commander"; import { DocstoreCommandOptions } from "./index.js"; /** * Add a document to a docstore * @param data Document data * @param options Command options */ export declare function addDoc(data: string, options: DocstoreCommandOptions): Promise<void>; /** * Register the add command * @param docstoreCommand The parent docstore command * @param addPathOption Function to add path option to command */ export declare function registerAddCommand(docstoreCommand: Command, addCommonOptions: (cmd: Command) => Command): void;