/**
 * Decoder-First Gate for UAP Protocol Compliance
 *
 * Implements the Decoder-First validation gate (Compliance Deviation #2).
 * Before any droid/agent executes a task, this gate validates:
 * 1. Droid metadata schema is valid
 * 2. Required tools are available
 * 3. Coordination claims don't conflict
 * 4. Task instruction passes ambiguity threshold
 *
 * This is an explicit pre-execution validator that replaces the
 * implicit validation previously done via memory checks.
 */
export interface DroidMeta {
    name: string;
    description: string;
    model?: string;
    coordination?: {
        channels?: string[];
        claims?: string[];
    };
    tools?: string[];
}
export interface TaskContext {
    agentId: string;
    taskInstruction: string;
    worktreePath?: string;
    projectRoot?: string;
}
export interface ValidationResult {
    valid: boolean;
    errors: ValidationError[];
    warnings: ValidationWarning[];
    ambiguityCheck?: {
        score: number;
        level: string;
        shouldAsk: boolean;
        questions: string[];
    };
}
export interface ValidationError {
    gate: string;
    message: string;
    severity: 'error' | 'fatal';
}
export interface ValidationWarning {
    gate: string;
    message: string;
    suggestion: string;
}
/**
 * Validate all decoder-first gates before droid execution.
 * Returns a ValidationResult indicating whether execution should proceed.
 */
export declare function validateDecoderFirst(droidName: string, taskContext: TaskContext, options?: {
    projectRoot?: string;
    requireWorktree?: boolean;
    ambiguityThreshold?: number;
}): Promise<ValidationResult>;
declare const _default: {
    validateDecoderFirst: typeof validateDecoderFirst;
};
export default _default;
//# sourceMappingURL=decoder-gate.d.ts.map