import { type CompletionResult, type ParsedArgs } from "@cotal-ai/core"; /** * One explicit --to, --channel or --role chooses the native delivery mode. The command * publishes one body and exits; a stored message is not proof of delivery or completion. */ export declare const sendFlags: readonly [{ readonly name: "space"; readonly short: "s"; readonly type: "string"; readonly value: ""; readonly description: "target space (default: the resolved mesh)"; }, { readonly name: "server"; readonly type: "string"; readonly value: ""; readonly description: "broker URL (overrides the mesh registry entry)"; }, { readonly name: "creds"; readonly type: "string"; readonly value: ""; readonly description: "creds file for an off-registry connection"; }, { readonly name: "json"; readonly short: "j"; readonly type: "boolean"; readonly description: "structured output on stdout"; }, { readonly name: "plain"; readonly type: "boolean"; readonly description: "plain line-oriented output"; }, { readonly name: "to"; readonly short: "t"; readonly type: "string"; readonly value: ""; readonly description: "send directly to one agent"; }, { readonly name: "channel"; readonly short: "c"; readonly type: "string"; readonly value: ""; readonly description: "publish to one channel"; }, { readonly name: "role"; readonly short: "r"; readonly type: "string"; readonly value: ""; readonly description: "queue for one agent with this role"; }, { readonly name: "file"; readonly short: "f"; readonly type: "string"; readonly value: ""; readonly description: "read the message body from this UTF-8 file (- reads stdin), instead of a positional body"; }, { readonly name: "stdin"; readonly type: "boolean"; readonly description: "read the message body from explicit stdin, instead of a positional body"; }, { readonly name: "mention"; readonly type: "string"; readonly multiple: true; readonly value: ""; readonly description: "channel: wake this authorized peer; repeat for several peers"; }, { readonly name: "reply-to"; readonly type: "string"; readonly value: ""; readonly description: "direct send: name the message this body answers"; }, { readonly name: "verbose"; readonly short: "v"; readonly type: "boolean"; readonly description: "include the actual sending principal in the receipt"; }]; interface SendInput { mode: "dm" | "msg" | "ask"; target: string; source: "argument" | "file" | "stdin"; text?: string; } /** Resolve the recipient and body-source grammar without reading stdin or opening a connection. */ export declare function sendArguments(args: ParsedArgs): SendInput; /** Read the explicit body once, send once, close the transient sender, then print one receipt. */ export declare function send(args: ParsedArgs): Promise; /** Complete the declared destination flags from local records only. */ export declare function sendComplete(argv: string[]): CompletionResult; /** Channels/roles declared by the TARGET mesh's personas — `cotal send` and `cotal chat` act on the * mesh `--space`/`--server` resolve to, so their completions must come from that mesh's catalog and * not from whatever project the operator happens to be standing in. Offline (no probe: a never * opens the network) and FAIL CLOSED — with no single resolvable target, or a malformed persona * file (see `declaredValues`), offer nothing rather than throw into the operator's shell. */ export declare function declaredFrom(argv: string[], list: (root: string) => string[]): string[]; export {}; //# sourceMappingURL=send.d.ts.map