export interface EvaluateCancellationInput { daysBeforeDeparture: number; totalCents: number; currency?: string; } export interface UseEvaluateCancellationOptions { enabled?: boolean; } /** * Evaluates a cancellation policy as a cacheable query. Returns the refund * percent/amount/type and the applied rule. Runs automatically when all of * policyId/daysBeforeDeparture/totalCents are provided and `enabled` is true. */ export declare function useEvaluateCancellation(policyId: string | null | undefined, input: EvaluateCancellationInput | null | undefined, options?: UseEvaluateCancellationOptions): import("@tanstack/react-query").UseQueryResult, Error>; /** * Imperative mutation variant of the cancellation evaluation for cases where * the caller needs to trigger evaluation manually (e.g. with ad-hoc inputs). */ export declare function useEvaluateCancellationMutation(policyId: string | null | undefined): import("@tanstack/react-query").UseMutationResult<{ refundPercent: number; refundCents: number; refundType: "cash" | "credit" | "cash_or_credit" | "none"; appliedRule: { daysBeforeDeparture: number | null; refundPercent: number | null; refundType: "cash" | "credit" | "cash_or_credit" | "none" | null; flatAmountCents: number | null; label: string | null; id?: string | undefined; } | null; }, Error, EvaluateCancellationInput, unknown>;