import type { HistoricalKeyResolver } from '../../v2/identity-binding/types.js'; import type { IdJagClaims } from './types.js'; export type IdJagActorBindingV1 = { method: 'cnf.jkt'; agent_id: string; verification_method: string; jwk_thumbprint: string; } | { method: 'dual_signature'; agent_id: string; verification_method: string; signature: string; }; export interface IdJagImportV1 { profile: 'aps-id-jag-import-v1'; draft: string; grant_ref: string; grant_decision_ref: string; delegation_chain_root: string; issuer: string; subject: string; client_id: string; audience: string[]; agent_id: string; actor_binding: IdJagActorBindingV1; verified_by: string; verification_method: string; grant_key_id: string; verified_at: string; issued_at: string; signature: string; } export interface VerifiedCompactIdJagGrantV1 { compact_jws: string; claims: IdJagClaims & { cnf?: { jkt?: string; }; }; verification: { status: 'verified'; verified_by: string; verification_method: string; grant_key_id: string; verified_at: string; }; } export interface IdJagImportVerificationV1 { state: 'valid' | 'invalid' | 'indeterminate'; code: string; grant_bytes: 'matched' | 'mismatch'; importer_signature: 'verified' | 'rejected' | 'unresolved'; actor_binding: 'verified' | 'rejected' | 'unresolved'; } export declare function computeIdJagGrantRefV1(compactJws: string): string; export declare function createIdJagActorBindingSignatureV1(grantRef: string, agentId: string, verificationMethod: string, agentPrivateKeyHex: string): string; export declare function createIdJagImportV1(input: { grant: VerifiedCompactIdJagGrantV1; delegation_chain_root: string; agent_binding: IdJagActorBindingV1; importer_private_key_hex: string; issued_at: string; resolve_agent_key?: HistoricalKeyResolver; resolve_agent_jwk_thumbprint?: (agentId: string, verificationMethod: string, at: string) => string | undefined | Promise; }): Promise; export declare function verifyIdJagImportV1(candidate: unknown, source: { compact_jws: string; claims: VerifiedCompactIdJagGrantV1['claims']; }, options: { resolve_importer_key: HistoricalKeyResolver; resolve_agent_key?: HistoricalKeyResolver; resolve_agent_jwk_thumbprint?: (agentId: string, verificationMethod: string, at: string) => string | undefined | Promise; }): Promise; //# sourceMappingURL=import-v1.d.ts.map