export interface GatewayWakeLogger { info(msg: string, ...args: unknown[]): void; warn(msg: string, ...args: unknown[]): void; } export interface GatewayWakeOptions { logger: GatewayWakeLogger; /** Reason string used in log prefixes. */ reason: string; /** Session key (e.g. "feishu:xxx") used to look up sessionId in sessions.json. */ sessionKey: string; /** Message body delivered to the gateway's "agent" command. */ message: string; /** Whether to deliver AI reply back to the user's channel. */ deliver: boolean; deliveryContext?: { channel?: string; to?: string; accountId?: string; }; /** Per-attempt timeout. Default 20s. */ perAttemptTimeoutMs?: number; /** Retry delays in ms. Empty array disables retries. Default [10_000, 30_000]. */ retryDelays?: readonly number[]; /** Called with true on first successful ack (with runId); false if all attempts exhausted. */ onComplete?: (ok: boolean) => void; } /** * 唤醒本地 AI。内部负责重试;对外以 onComplete(ok) 回调通知最终结果。 * 调用方无需处理 Promise,避免阻塞队列。 */ export declare function wakeAiViaGateway(opts: GatewayWakeOptions): void;