import { AuthErrorCode } from "../gen/auth/v1/auth_pb.js"; import { ProfileErrorCode } from "../gen/auth/v1/profile_pb.js"; import { ErrorCode } from "../gen/claims/v1/claims_pb.js"; import { ErrorCode as ErrorCode$1 } from "../gen/chain/withdraw/v1/withdraw_pb.js"; import { ErrorCode as ErrorCode$2 } from "../gen/ledger/read/v1/ledger_read_pb.js"; import { ErrorCode as ErrorCode$3 } from "../gen/marketoverview/v1/marketoverview_pb.js"; import { ErrorCode as ErrorCode$4 } from "../gen/transfer/v1/internal_transfer_pb.js"; import { OrderErrorDetail } from "../services/orders/order-errors.schemas.js"; import { DescMessage, MessageShape } from "@bufbuild/protobuf"; import { ConnectError } from "@connectrpc/connect"; //#region src/shared/error-detail.d.ts type NamedCode> = keyof Enum; type PolyesterErrorDetail = { service: "auth"; code: NamedCode; message: string; } | { service: "profile"; code: NamedCode; field: string; message: string; } | ({ service: "orders"; } & OrderErrorDetail) | { service: "withdraw"; code: NamedCode; } | { service: "internal_transfer"; code: NamedCode; } | { service: "ledger"; code: NamedCode; } | { service: "market_overview"; code: NamedCode; } | { service: "claims"; code: NamedCode; }; /** * Loads the decoders for the details on `error`, or every decoder when called * without an error. SDK transports call this before mapping errors; call it * yourself before synchronously mapping a `ConnectError` that did not come * through an SDK transport. */ declare function loadErrorDetailDecoders(error?: unknown): Promise; //#endregion export { PolyesterErrorDetail, loadErrorDetailDecoders }; //# sourceMappingURL=error-detail.d.ts.map