import { type ApprovalAnswer, type ApprovalView, type Inbound, type SessionIdentity } from './gateway/index.ts'; export declare const FEISHU_CARD_KIND = "dsh-approval"; export type FeishuApprovalCardValue = { readonly kind: typeof FEISHU_CARD_KIND; readonly requestId: string; readonly answer: ApprovalAnswer; readonly chatKind: SessionIdentity['kind']; readonly chatId: string; readonly threadId?: string; }; export type FeishuCardActionEvent = { operator?: { open_id?: string; }; open_id?: string; action?: { value?: unknown; tag?: string; }; context?: { open_chat_id?: string; open_message_id?: string; }; open_chat_id?: string; open_message_id?: string; }; export type FeishuCardJson = { config: { wide_screen_mode: boolean; }; header: { title: { tag: 'plain_text'; content: string; }; template: string; }; elements: unknown[]; }; /** Interactive card whose buttons map to existing allow-once / deny answers. */ export declare function feishuApprovalCard(request: ApprovalView, identity: SessionIdentity): FeishuCardJson; export declare function handledFeishuCard(request: ApprovalView, answer?: ApprovalAnswer): FeishuCardJson; /** Card callback → existing approvalAnswer inbound. No new permission states. */ export declare function inboundFromFeishuCardAction(event: FeishuCardActionEvent): Inbound | undefined; export declare function isFeishuPlatform(platform: string): boolean;