import type { SignedPassport } from '../types/passport.js';
import type { AgentRole, AutonomyLevel, RoleAssignment, IntentDocument, IntentGoal, TradeoffRule, ConsensusRound, Deliberation, DeliberationOutcome, DomainAssessment, Precedent, IntentPassportExtension } from '../types/intent.js';
export declare function assignRole(opts: {
    signedPassport: SignedPassport;
    role: AgentRole;
    autonomyLevel: AutonomyLevel;
    department?: string;
    scope: string[];
    assignerPrivateKey: string;
    assignerPublicKey: string;
}): RoleAssignment;
export declare function createTradeoffRule(opts: {
    when: string;
    prefer: string;
    until: string;
    thenPrefer: string;
    context?: string;
}): TradeoffRule;
export interface TradeoffEvaluation {
    ruleId: string;
    winner: string;
    thresholdExceeded: boolean;
    reasoning: string;
}
export declare function evaluateTradeoff(rule: TradeoffRule, thresholdExceeded: boolean): TradeoffEvaluation;
export declare function createIntentDocument(opts: {
    department?: string;
    authorPublicKey: string;
    authorPrivateKey: string;
    title: string;
    goals: IntentGoal[];
    tradeoffHierarchy: TradeoffRule[];
    expiresAt?: string;
}): IntentDocument;
export declare function createDeliberation(opts: {
    subject: string;
    description: string;
    initiatedBy: string;
    convergenceThreshold?: number;
    maxRounds?: number;
    reversibilityScore: number;
}): Deliberation;
export declare function submitConsensusRound(deliberation: Deliberation, opts: {
    agentId: string;
    publicKey: string;
    privateKey: string;
    role: AgentRole;
    department?: string;
    assessment: DomainAssessment[];
    reasoning: string;
}): {
    deliberation: Deliberation;
    round: ConsensusRound;
};
export interface ConsensusEvaluation {
    converged: boolean;
    standardDeviation: number;
    roundNumber: number;
    agentCount: number;
    recommendation: 'continue' | 'converged' | 'escalate';
}
export declare function evaluateConsensus(deliberation: Deliberation): ConsensusEvaluation;
export declare function resolveDeliberation(deliberation: Deliberation, opts: {
    decision: string;
    votesFor: string[];
    votesAgainst: string[];
    abstained: string[];
    escalatedTo?: string;
    resolverPrivateKey: string;
    resolverAgentId: string;
}): {
    deliberation: Deliberation;
    outcome: DeliberationOutcome;
    precedent: Precedent;
};
export declare function getPrecedentsByTopic(precedents: Precedent[], topic: string): Precedent[];
export declare function citePrecedent(precedent: Precedent): Precedent;
export declare function createIntentPassportExtension(opts: {
    role: AgentRole;
    autonomyLevel: AutonomyLevel;
    department?: string;
    activeIntents: string[];
    tradeoffHierarchyHash: string;
}): IntentPassportExtension;
//# sourceMappingURL=intent.d.ts.map