import * as Schema from "effect/Schema";
export declare const PostClimateOrdersOrderCancelInput: Schema.Struct<{
    readonly order: Schema.String;
    readonly expand: Schema.optional<Schema.$Array<Schema.String>>;
}>;
export type PostClimateOrdersOrderCancelInput = typeof PostClimateOrdersOrderCancelInput.Type;
export declare const PostClimateOrdersOrderCancelOutput: Schema.Struct<{
    readonly amount_fees: Schema.Number;
    readonly amount_subtotal: Schema.Number;
    readonly amount_total: Schema.Number;
    readonly beneficiary: Schema.optional<Schema.Struct<{
        readonly public_name: Schema.String;
    }>>;
    readonly canceled_at: Schema.NullOr<Schema.Number>;
    readonly cancellation_reason: Schema.NullOr<Schema.Literals<readonly ["expired", "product_unavailable", "requested"]>>;
    readonly certificate: Schema.NullOr<Schema.String>;
    readonly confirmed_at: Schema.NullOr<Schema.Number>;
    readonly created: Schema.Number;
    readonly currency: Schema.String;
    readonly delayed_at: Schema.NullOr<Schema.Number>;
    readonly delivered_at: Schema.NullOr<Schema.Number>;
    readonly delivery_details: Schema.$Array<Schema.Struct<{
        readonly delivered_at: Schema.Number;
        readonly location: Schema.Unknown;
        readonly metric_tons: Schema.String;
        readonly registry_url: Schema.NullOr<Schema.String>;
        readonly supplier: Schema.Struct<{
            readonly id: Schema.String;
            readonly info_url: Schema.String;
            readonly livemode: Schema.Boolean;
            readonly locations: Schema.$Array<Schema.Struct<{
                readonly city: Schema.NullOr<Schema.String>;
                readonly country: Schema.String;
                readonly latitude: Schema.NullOr<Schema.Number>;
                readonly longitude: Schema.NullOr<Schema.Number>;
                readonly region: Schema.NullOr<Schema.String>;
            }>>;
            readonly name: Schema.String;
            readonly object: Schema.Literals<readonly ["climate.supplier"]>;
            readonly removal_pathway: Schema.Literals<readonly ["biomass_carbon_removal_and_storage", "direct_air_capture", "enhanced_weathering", "marine_carbon_removal"]>;
        }>;
    }>>;
    readonly expected_delivery_year: Schema.Number;
    readonly id: Schema.String;
    readonly livemode: Schema.Boolean;
    readonly metadata: Schema.$Record<Schema.String, Schema.String>;
    readonly metric_tons: Schema.String;
    readonly object: Schema.Literals<readonly ["climate.order"]>;
    readonly product: Schema.Unknown;
    readonly product_substituted_at: Schema.NullOr<Schema.Number>;
    readonly status: Schema.Literals<readonly ["awaiting_funds", "canceled", "confirmed", "delivered", "open"]>;
}>;
export type PostClimateOrdersOrderCancelOutput = typeof PostClimateOrdersOrderCancelOutput.Type;
/**
 * Cancel an order
 *
 * <p>Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the
 * reservation <code>amount_subtotal</code>, but not the <code>amount_fees</code> for user-triggered cancellations. Frontier
 * might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
 * provides 90 days advance notice and refunds the <code>amount_total</code>.</p>
 *
 * @param order - Unique identifier of the order.
 */
export declare const PostClimateOrdersOrderCancel: import("@distilled.cloud/core/client").OperationMethod<{
    readonly expand?: readonly string[] | undefined;
    readonly order: string;
}, {
    readonly amount_fees: number;
    readonly amount_subtotal: number;
    readonly amount_total: number;
    readonly beneficiary?: {
        readonly public_name: string;
    } | undefined;
    readonly canceled_at: number | null;
    readonly cancellation_reason: "expired" | "product_unavailable" | "requested" | null;
    readonly certificate: string | null;
    readonly confirmed_at: number | null;
    readonly created: number;
    readonly currency: string;
    readonly delayed_at: number | null;
    readonly delivered_at: number | null;
    readonly delivery_details: readonly {
        readonly delivered_at: number;
        readonly location: unknown;
        readonly metric_tons: string;
        readonly registry_url: string | null;
        readonly supplier: {
            readonly id: string;
            readonly info_url: string;
            readonly livemode: boolean;
            readonly locations: readonly {
                readonly city: string | null;
                readonly country: string;
                readonly latitude: number | null;
                readonly longitude: number | null;
                readonly region: string | null;
            }[];
            readonly name: string;
            readonly object: "climate.supplier";
            readonly removal_pathway: "biomass_carbon_removal_and_storage" | "direct_air_capture" | "enhanced_weathering" | "marine_carbon_removal";
        };
    }[];
    readonly expected_delivery_year: number;
    readonly id: string;
    readonly livemode: boolean;
    readonly metadata: {
        readonly [x: string]: string;
    };
    readonly metric_tons: string;
    readonly object: "climate.order";
    readonly product: unknown;
    readonly product_substituted_at: number | null;
    readonly status: "awaiting_funds" | "canceled" | "confirmed" | "delivered" | "open";
}, never, import("..").Credentials>;
//# sourceMappingURL=PostClimateOrdersOrderCancel.d.ts.map