/** * 路由器动作处理器 * * 从 index.ts 抽取的权限和问题处理逻辑, * 通过依赖注入方式提供给 RootRouter。 */ import type { FeishuCardActionEvent } from '../feishu/client.js'; import type { FeishuMessageEvent } from '../feishu/client.js'; import type { CardActionResponse } from './root-router.js'; /** * Timeline 回调类型 */ export type UpsertTimelineNote = (bufferKey: string, noteKey: string, text: string, variant?: 'retry' | 'compaction' | 'question' | 'error' | 'permission') => void; /** * 创建权限动作处理器 */ export declare function createPermissionActionCallbacks(upsertTimelineNote: UpsertTimelineNote): { handlePermissionAction: (actionValue: Record, action: 'permission_allow' | 'permission_deny') => Promise; tryHandlePendingPermissionByText: (event: FeishuMessageEvent) => Promise; }; /** * 创建问题动作处理器 */ export declare function createQuestionActionCallbacks(): { handleQuestionSkipAction: (event: FeishuCardActionEvent, actionValue: Record) => Promise; }; //# sourceMappingURL=action-handlers.d.ts.map