/** * CLI: send — send messages and files via IPC to the running daemon. * * 发送类型必须显式(--text / --card / --file)且互斥:裸位置参数不再当文本发送。 * 写错的发文件命令(如 `nbt send file x.md`)会直接报错并给出用法, * 避免被静默降级成一条文本消息、模型误以为成功。 */ import { type LocalIpcEndpoint } from "../platform/ipc.js"; export declare function resolveSendEndpoint(env?: NodeJS.ProcessEnv, platform?: NodeJS.Platform): LocalIpcEndpoint; export declare function resolveSendFilePaths(args: string[], positional: string[], flags: Record): string[] | undefined; /** --text 的正文:标志值 + 多余位置参数拼接;未指定 --text 时返回 undefined。 * parseArgs 用 "true" 表示缺省值,与字面量 "true" 无法区分;按原始参数确认是否为字面量。 */ export declare function resolveSendText(args: string[], flags: Record, positional: string[]): string | undefined; /** 发送参数校验:类型必须显式且互斥;--file 不接受额外位置参数。返回错误列表。 */ export declare function validateSendArgs(positional: string[], flags: Record, hasFileFlag: boolean): string[]; export declare function resolveSendScope(targetChatId: string | undefined, currentChatId: string | undefined, env?: NodeJS.ProcessEnv): { scopeKey?: string; threadId?: string; }; export declare function handleSend(args: string[], chatId: string | undefined, parseArgs: (args: string[]) => { positional: string[]; flags: Record; }): void;