/**
 * CrewAI Adapter — primitive mappings between CrewAI tasks and APS delegations.
 *
 * Pure mapping + receipt-builder layer. Stateful runtime (audit trail,
 * spend tracking, gateway reporting) lives in the gateway — callers that
 * need those behaviours supply them via the `onReceipt` / `onDenied` hooks.
 */
import type { Delegation, ActionReceipt, SignedPassport } from '../types/passport.js';
export interface CrewTask {
    description: string;
    agent: string;
    tools?: string[];
    expected_output?: string;
}
export interface CrewGovernanceConfig {
    passport: SignedPassport;
    delegation: Delegation;
    privateKey: string;
    onReceipt?: (r: ActionReceipt) => void;
    onDenied?: (info: {
        task: string;
        agent: string;
        reason: string;
    }) => void;
}
export interface GovernedTaskResult {
    output: unknown;
    receipt: ActionReceipt;
    toolReceipts: ActionReceipt[];
}
/** Generate scopes needed for a CrewTask */
export declare function crewTaskToScopes(task: CrewTask): string[];
/** Verify crew member has authority for task */
export declare function verifyCrewMember(agentName: string, task: CrewTask, config: CrewGovernanceConfig): {
    authorized: boolean;
    reason: string;
    scope: string;
};
/** Wrap task execution with governance */
export declare function governCrewTask(task: CrewTask, execute: (task: CrewTask) => Promise<unknown>, config: CrewGovernanceConfig): Promise<GovernedTaskResult | {
    denied: true;
    reason: string;
    receipt: ActionReceipt;
}>;
//# sourceMappingURL=crewai.d.ts.map