import * as z from "zod/v4-mini"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * To have insurance cover provided by a carrier directly instead of Shippo's provider (XCover), set `provider` to `FEDEX`, `UPS`, or `ONTRAC`. */ export declare const Provider: { readonly Fedex: "FEDEX"; readonly Ups: "UPS"; readonly Ontrac: "ONTRAC"; }; /** * To have insurance cover provided by a carrier directly instead of Shippo's provider (XCover), set `provider` to `FEDEX`, `UPS`, or `ONTRAC`. */ export type Provider = ClosedEnum; /** * To add 3rd party insurance powered by XCover, * * @remarks * specify
`amount`, `content`, and `currency`.
Alternatively, you can choose carrier provided insurance * by additionally specifying `provider` (UPS, FedEx and OnTrac only).

If you do not want to add insurance * to your shipment, do not set these parameters. */ export type Insurance = { /** * Declared value of the goods you want to insure. */ amount?: string | undefined; /** * Description of package content. */ content?: string | undefined; /** * Currency for the amount value. * * @remarks * Currently only USD is supported for FedEx and UPS. */ currency?: string | undefined; /** * To have insurance cover provided by a carrier directly instead of Shippo's provider (XCover), set `provider` to `FEDEX`, `UPS`, or `ONTRAC`. */ provider?: Provider | undefined; }; /** @internal */ export declare const Provider$inboundSchema: z.ZodMiniEnum; /** @internal */ export declare const Provider$outboundSchema: z.ZodMiniEnum; /** @internal */ export declare const Insurance$inboundSchema: z.ZodMiniType; /** @internal */ export type Insurance$Outbound = { amount?: string | undefined; content?: string | undefined; currency?: string | undefined; provider?: string | undefined; }; /** @internal */ export declare const Insurance$outboundSchema: z.ZodMiniType; export declare function insuranceToJSON(insurance: Insurance): string; export declare function insuranceFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=insurance.d.ts.map