/**
 * Google A2A Adapter — primitive mappings between A2A Agent Cards and APS passports.
 *
 * A2A pattern: Agent Card (discovery) → Task (work) → Artifact (output)
 * APS pattern: Passport (identity) → Delegation (scope) → Receipt (proof)
 *
 * This module is a pure mapping layer. Runtime governance (the stateful
 * lifecycle hook) lives in the gateway.
 */
import type { A2AAgentCard } from '../types/a2a.js';
import type { Delegation, SignedPassport } from '../types/passport.js';
/** Derive APS-compatible scopes from an A2A Agent Card. */
export declare function deriveA2AScopes(card: A2AAgentCard): string[];
export interface A2AAgentCardV2 {
    name: string;
    description?: string;
    url?: string;
    provider?: {
        organization: string;
        url?: string;
    };
    version?: string;
    capabilities?: {
        streaming?: boolean;
        pushNotifications?: boolean;
        stateTransitionHistory?: boolean;
    };
    skills?: Array<{
        id: string;
        name: string;
        description?: string;
        inputModes?: string[];
        outputModes?: string[];
    }>;
    securitySchemes?: Record<string, unknown>;
    security?: unknown[];
    defaultInputModes?: string[];
    defaultOutputModes?: string[];
    extensions?: {
        aps_trust?: unknown;
        [k: string]: unknown;
    };
}
/** Convert APS passport to A2A Agent Card */
export declare function passportToA2ACard(passport: SignedPassport, opts?: {
    delegation?: Delegation;
    url?: string;
    skills?: A2AAgentCardV2['skills'];
    capabilities?: A2AAgentCardV2['capabilities'];
}): A2AAgentCardV2;
/** Convert A2A Agent Card to APS passport metadata */
export declare function a2aCardToPassportMeta(card: A2AAgentCardV2): {
    agentId: string;
    metadata: Record<string, unknown>;
};
/** Verify an A2A agent has valid APS identity */
export declare function verifyA2AIdentity(card: A2AAgentCardV2, passport: SignedPassport): {
    valid: boolean;
    errors: string[];
};
/** Extract delegation scope from A2A skills */
export declare function a2aSkillsToScope(skills?: A2AAgentCardV2['skills']): string[];
/** Embed APS trust signal in Agent Card extensions */
export declare function embedA2ATrustSignal(card: A2AAgentCardV2, passport: SignedPassport, trustEndpoint?: string): A2AAgentCardV2;
//# sourceMappingURL=a2a.d.ts.map