/** * 入站带 URL 的附件:落盘到项目 input 或默认 xg-cwork-im/input,并将本地路径写入 MediaPath。 */ import type { OpenClawConfig } from "openclaw/plugin-sdk"; import type { Log } from "./auth.js"; import type { RobotMentionAgentContext } from "./agent-context-types.js"; import type { MsgFileVO, XgImConfig } from "./types.js"; /** agentContext 指定项目根时,其下的入站附件子目录名 */ export declare const AGENT_CONTEXT_INPUT_DIR = "input"; /** 未指定 agentContext 时,相对 workspace 的默认入站目录 */ export declare const DEFAULT_INBOUND_INPUT_REL = "xg-cwork-im/input"; export declare function hasInboundUrlDownloads(fileItems: MsgFileVO[]): boolean; export interface InboundInputHostLayout { /** 宿主机绝对路径:…/input(其下再按 userId/日期 分目录) */ inputHostDir: string; /** 用于生成 OpenClaw MediaPath;文件若在 workspace 外则可能为 undefined */ workspaceRoot?: string; } /** * 解析入站附件落盘根目录(input 文件夹的宿主绝对路径)。 */ export declare function resolveInboundInputHostLayout(args: { cfg: OpenClawConfig; agentId: string; agentContext?: RobotMentionAgentContext; workspaceHostRoot?: string; log?: Log; }): InboundInputHostLayout | undefined; /** * 将带 URL 的入站附件下载到 input 目录;无 URL 的项原样保留。失败项保留原 URL。 */ export declare function saveInboundFilesToInputDir(args: { rt: unknown; cfg: OpenClawConfig; config: XgImConfig; agentId: string; agentContext?: RobotMentionAgentContext; workspaceHostRoot?: string; senderUserId: string | undefined; fileItems: MsgFileVO[]; log?: Log; }): Promise; //# sourceMappingURL=inbound-input-media.d.ts.map