/**
 * APS v2 Bridge — Connects v1 SDK primitives to v2 protocol extensions
 * Uses v1's crypto (node:crypto Ed25519) and canonical serialization.
 */
import type { Delegation } from '../types/passport.js';
import type { PolicyContext, V2Delegation, V2ScopeDefinition, ArtifactProvenance, RiskClass, SemanticUncertainty, ConditionSet } from './types.js';
import type { BehavioralAttestationResult } from '../types/attestation.js';
export declare function sha256(data: string): string;
export declare function hashObject(obj: Record<string, unknown>): string;
export declare function signObject(obj: Record<string, unknown>, privateKey: string): string;
export declare function verifyObject(obj: Record<string, unknown>, signature: string, publicKey: string): boolean;
export declare function createPolicyContext(params: {
    policy_version: string;
    values_floor_version: string;
    trust_epoch: number;
    issuer_id: string;
    valid_from?: string;
    valid_until: string;
}): PolicyContext;
export declare function isPolicyContextActive(ctx: PolicyContext, now?: Date): boolean;
export declare function isPolicyContextInGrace(ctx: PolicyContext, gracePeriodMs?: number, now?: Date): boolean;
export declare function v1DelegationToV2(v1: Delegation, policyContext: PolicyContext): V2Delegation;
export declare function v2DelegationToV1(v2: V2Delegation, maxDepth?: number, currentDepth?: number): Delegation;
export declare function createArtifactProvenance(params: {
    authoring_agent: string;
    authority_scope: V2ScopeDefinition;
    delegation_ref: string;
    intended_use: string;
    risk_class: RiskClass;
    requires_human_execution: boolean;
    content: string;
    artifact_type: string;
    policy_context: PolicyContext;
    agent_private_key: string;
    behavioralAttestation?: BehavioralAttestationResult;
}): ArtifactProvenance;
export declare function verifyArtifactIntegrity(provenance: ArtifactProvenance, content: string): boolean;
export declare function computeDecayedWeight(rawWeight: number, earningEpoch: number, currentEpoch: number, domain?: string): number;
export declare function getUncertaintyRequirements(level: SemanticUncertainty): {
    requires_attestation: boolean;
    requires_outcome_registration: boolean;
    requires_external_cosign: boolean;
    review_mode: 'async' | 'sync' | 'none';
    audit_sample_rate: number;
};
export declare function resolveUncertaintyLevel(delegatorAssigned: SemanticUncertainty, agentAssessed: SemanticUncertainty): SemanticUncertainty;
export declare function evaluateConditions(conditions: ConditionSet, context: Record<string, unknown>): boolean;
//# sourceMappingURL=bridge.d.ts.map