import type { SegmentReadFailureKind } from '../errors'; import { AgentPortError, SegmentReadError } from '../errors'; export declare function flattenAgentMessage(detail: string): string; export declare function agentErrorDetail(cause: unknown): string | undefined; export declare function agentPortError(operation: string, cause: unknown): AgentPortError; export declare function classifyAgentFailure(cause: unknown): { failure: SegmentReadFailureKind; httpStatus?: number; }; export declare function segmentReadError(operation: string, cause: unknown): SegmentReadError; //# sourceMappingURL=agent-errors.d.ts.map