import type { ChannelConfig, Logger } from "./types.js"; declare const CHANNEL_ID = "openclaw-channel-xiaozhu"; type ToolApprovalEvaluation = { block?: boolean; blockReason?: string; requireApproval?: { title: string; description: string; severity?: "info" | "warning" | "critical"; timeoutMs?: number; timeoutBehavior?: "allow" | "deny"; onResolution?: (decision: string) => void; }; }; type XiaozhuSessionContext = { channelId: typeof CHANNEL_ID; accountId: string; chatType: "direct" | "group"; sessionId: string; agentId?: string; sessionKey: string; }; export declare function parseXiaozhuSessionContext(sessionKey?: string | null): XiaozhuSessionContext | null; export declare function evaluateToolApproval(params: { cfg: ChannelConfig; sessionKey?: string | null; toolName?: string | null; logger?: Logger; }): ToolApprovalEvaluation; export declare function buildBeforeToolCallHookResult(params: { cfg: ChannelConfig; event?: Record; ctx?: Record; logger?: Logger; }): ToolApprovalEvaluation | undefined; export {}; //# sourceMappingURL=tool-approval.d.ts.map