import { type WorkflowApprovalHandlerDeps } from './workflow-card-handler.js';
import type { DaemonSession } from '../../core/types.js';
import type { ProjectInfo } from '../../services/project-scanner.js';
export interface CardHandlerDeps {
    activeSessions: Map<string, DaemonSession>;
    sessionReply: (rootId: string, content: string, msgType?: string, larkAppId?: string, turnId?: string) => Promise<string>;
    lastRepoScan: Map<string, ProjectInfo[]>;
    workflowApprovalDeps?: WorkflowApprovalHandlerDeps;
    workflowApprovalResolved?: (runId: string) => void | Promise<void>;
}
interface CardActionData {
    operator?: {
        open_id?: string;
    };
    action?: {
        value?: Record<string, string>;
        option?: string;
        form_value?: Record<string, string>;
    };
    context?: {
        open_message_id?: string;
    };
    open_message_id?: string;
}
export declare function handleCardAction(data: CardActionData, deps: CardHandlerDeps, larkAppId?: string): Promise<any>;
export {};
//# sourceMappingURL=card-handler.d.ts.map