/** * `vana app ask "" --sources a,b --derived ` * * The consent path by default: the question travels inside an access * request, so the person approves the question itself and the app ends up * holding a grant on the answer rather than on the sources it was computed * from. `--registered` switches to the builder-registered path, which needs * a read grant on every source scope and says so. * * This composes commands that already exist rather than reimplementing * them: it creates the request, waits for the answer to settle, and reads * the derived scope through the same escrow path, gates and receipts as any * other read. Costs are reported separately (see derivatives.ts). */ import { type AppCommandOptions } from "./outcome.js"; import { runAppRead } from "./read.js"; import { runAppRequest } from "./request.js"; import { runAppStatus } from "./derivatives.js"; export interface AskCommandOptions extends AppCommandOptions { sources?: string; derived?: string; /** Settle the derived-scope read from escrow. */ pay?: boolean; maxFee?: string; timeout?: string; /** * Register the question as a builder instead of carrying it through * consent. Needs a read grant on every source scope. */ registered?: boolean; } export interface AskDeps { request?: typeof runAppRequest; status?: typeof runAppStatus; read?: typeof runAppRead; } export declare function runAppAsk(question: string, options: AskCommandOptions, deps?: AskDeps): Promise; //# sourceMappingURL=ask.d.ts.map