import type { OrchestrateHandshakeResponse } from '../orchestrateHandshake'; export interface HandshakeExecutionContext { handshakeResult: OrchestrateHandshakeResponse; connectionInfo: any; jitContext: any; } export interface ExecuteWithHandshakeOptions { operation: string; buildContext: () => Promise; refreshContext: (reason: string) => Promise; runner: (context: HandshakeExecutionContext) => Promise; } export declare const RETRY_REASONS: { readonly missingVerificationKey: "missing-verification-key"; readonly networkFetch: "network-fetch-error"; readonly noValidShares: "no-valid-shares"; readonly generic: "retry"; }; export declare namespace EdgeCase { const isMissingVerificationKeyError: (error: unknown) => boolean; const isNetworkFetchError: (error: unknown) => boolean; const isNoValidSharesError: (error: unknown) => boolean; } export declare const executeWithHandshake: (options: ExecuteWithHandshakeOptions) => Promise;