import type { Receipt } from "@kya-os/contracts/registry";
/**
 * New KTA API response format (current standard)
 */
export interface NewKTARegistrationResponse {
    success: boolean;
    did: string;
    agent: {
        id: string;
        slug: string;
        name: string;
        url: string;
    };
    claimUrl: string;
    claimToken: string;
    keys?: {
        publicKey: string;
        privateKey: string;
        warning?: string;
    };
    receipt?: Partial<Receipt>;
    responseTime: number;
    error?: string;
}
/**
 * Legacy KTA API response format (backwards compatibility)
 */
export interface LegacyKTARegistrationResponse {
    success: boolean;
    did: string;
    agentId?: string;
    agentSlug?: string;
    agentName?: string;
    agentUrl?: string;
    agent?: {
        id?: string;
        slug?: string;
        name?: string;
        url?: string;
    };
    claim_url?: string;
    claimUrl?: string;
    claim_token?: string;
    claimToken?: string;
    keys?: {
        public_key?: string;
        publicKey?: string;
        private_key?: string;
        privateKey?: string;
        warning?: string;
    };
    receipt?: Partial<Receipt>;
    response_time?: number;
    responseTime?: number;
    error?: string;
}
/**
 * Normalize KTA registration API response to standard format
 * Handles both new and legacy API response formats
 */
export declare function normalizeRegistrationResponse(response: NewKTARegistrationResponse | LegacyKTARegistrationResponse): NewKTARegistrationResponse;
/**
 * New KTA API claim response format
 */
export interface NewKTAClaimResponse {
    success: boolean;
    did: string;
    agent: {
        id: string;
        name: string;
        url: string;
    };
    error?: string;
}
/**
 * Legacy KTA API claim response format
 */
export interface LegacyKTAClaimResponse {
    success: boolean;
    did: string;
    agentId?: string;
    agentName?: string;
    agentUrl?: string;
    agent?: {
        id?: string;
        name?: string;
        url?: string;
    };
    error?: string;
}
/**
 * Normalize KTA claim API response to standard format
 * Handles both new and legacy API response formats
 */
export declare function normalizeClaimResponse(response: NewKTAClaimResponse | LegacyKTAClaimResponse): NewKTAClaimResponse;
//# sourceMappingURL=api-response.d.ts.map