import type { ActionContract, AgentTransactionEnvelopeProjection, ActionType, BreakerDecision, BypassProbe, ContractEvidenceProjection, IntentCompilationRecord, IdempotencyRecoveryProjection, IsolationState, OperatingEnvelope, ProtectedPathInstallHealthProjection, ProtectedPathPosture, RecoveryRecommendation, ReceiptExport, DelegatedAuthorityRef, DelegatedAuthorityStatusTransition, GatewayRegistryEntry, GatewayCredentialRef, CredentialResolutionEvidence, GeneratedGraphEvidenceProjection, ReceiptTimelineProjection, ReviewArtifactRecord, ReviewDecision, RuntimeExecutionRecord, ToolCallDraft, ToolCapability } from "../protocol/public/schemas"; import type { GatewayCheckResult } from "../protocol/areas/gateway-gate"; import type { SurfaceOperationReconciliationResult } from "../protocol/areas/operation-lifecycle"; import type { PolicyEvaluationResponse } from "../protocol/areas/policy-greenlight"; import type { CompileIntentInput, CreateBypassProbeInput, CreateBreakerDecisionInput, CreateIsolationInput, CreateProtectedPathPostureInput, RegisterDelegatedAuthorityRefInput, RegisterGatewayCredentialRefInput, RecordCredentialResolutionEvidenceInput, TransitionDelegatedAuthorityStatusInput, CreateRecoveryRecommendationInput, CreateReceiptExportInput, CreateReviewArtifactInput, CreateReviewDecisionInput, CreateRuntimeExecutionInput, CreateToolCallDraftInput, EvaluatePolicyInput, ProposeActionContractInput, ReconcileSurfaceOperationInput, ResolveRecoveryTerminalConflictInput, GatewayCheckInput, TransitionToolCallDraftInput, TransitionRecoveryRecommendationStatusInput } from "../protocol/public/inputs"; import type { RecoveryRecommendationStatusChange, RecoveryTerminalConflictResolution } from "../protocol/areas/recovery"; import type { CallerAuthTokens, TransitionCallerRole } from "../http/admission/caller-auth"; import { type TransitionErrorEnvelope } from "../http/errors/transition-error-envelope"; export type HandshakeFetch = (input: Parameters[0], init?: Parameters[1]) => Promise; export type HandshakeClientOptions = { transitionToken?: string; transitionTokens?: CallerAuthTokens; protocolVersion?: string; requestIdentityFactory?: () => string; originatingIdentity?: string; }; export type EvidenceReadCallerRole = Extract; export declare class HandshakeClientError extends Error { readonly status: number; readonly envelope: TransitionErrorEnvelope; readonly code: string; readonly transitionName: string | null; readonly callerCustodyRole: TransitionCallerRole | null; readonly retryability: TransitionErrorEnvelope["retryability"]; readonly commitState: TransitionErrorEnvelope["commitState"]; readonly requestIdentity: string | null; readonly proofRef: string | null; readonly refusalRef: string | null; readonly failureClass: TransitionErrorEnvelope["failureClass"]; readonly failurePhase: TransitionErrorEnvelope["failurePhase"]; readonly problemType: TransitionErrorEnvelope["problemType"]; constructor(status: number, envelope: TransitionErrorEnvelope); } export declare class HandshakeClient { private readonly baseUrl; private readonly fetchImpl; private readonly options; constructor(baseUrl: string, fetchImpl?: HandshakeFetch, options?: HandshakeClientOptions); registerToolCapability(input: ToolCapability): Promise; registerActionType(input: ActionType): Promise; registerGatewayRegistryEntry(input: GatewayRegistryEntry): Promise; registerOperatingEnvelope(input: OperatingEnvelope): Promise; compileIntent(input: CompileIntentInput): Promise; createRuntimeExecution(input: CreateRuntimeExecutionInput): Promise; createBypassProbe(input: CreateBypassProbeInput): Promise; createToolCallDraft(input: CreateToolCallDraftInput): Promise; transitionToolCallDraft(input: TransitionToolCallDraftInput): Promise; createProtectedPathPosture(input: CreateProtectedPathPostureInput): Promise; registerGatewayCredentialRef(input: RegisterGatewayCredentialRefInput): Promise; registerDelegatedAuthorityRef(input: RegisterDelegatedAuthorityRefInput): Promise; transitionDelegatedAuthorityStatus(input: TransitionDelegatedAuthorityStatusInput): Promise; proposeActionContract(input: ProposeActionContractInput): Promise; evaluatePolicy(input: EvaluatePolicyInput): Promise; createReviewDecision(input: CreateReviewDecisionInput): Promise; createReviewArtifact(input: CreateReviewArtifactInput): Promise; createBreakerDecision(input: CreateBreakerDecisionInput): Promise<{ breakerDecision: BreakerDecision; isolationState: IsolationState; }>; createIsolationState(input: CreateIsolationInput): Promise; createReceiptExport(input: CreateReceiptExportInput): Promise; createRecoveryRecommendation(input: CreateRecoveryRecommendationInput): Promise; transitionRecoveryRecommendationStatus(input: TransitionRecoveryRecommendationStatusInput): Promise; resolveRecoveryTerminalConflictProofGap(input: ResolveRecoveryTerminalConflictInput): Promise; gatewayCheck(input: GatewayCheckInput): Promise; recordCredentialResolutionEvidence(input: RecordCredentialResolutionEvidenceInput): Promise; reconcileSurfaceOperation(input: ReconcileSurfaceOperationInput): Promise; getGeneratedGraphEvidenceProjection(generatedExecutionGraphId: string, role?: EvidenceReadCallerRole): Promise; getContractEvidenceProjection(actionContractId: string, role?: EvidenceReadCallerRole): Promise; getAgentTransactionEnvelopeProjection(actionContractId: string, role?: EvidenceReadCallerRole): Promise; getIdempotencyRecoveryProjection(actionContractId: string, role?: EvidenceReadCallerRole): Promise; getReceiptTimelineProjection(receiptId: string, role?: EvidenceReadCallerRole): Promise; getProtectedPathInstallHealthProjection(actionContractId: string, role?: EvidenceReadCallerRole): Promise; private post; private get; private request; private nextRequestIdentity; private errorEnvelopeForResponse; }