import type { ResolvePolicyFilters } from "../query-keys.js"; export interface UseResolvePolicyOptions { enabled?: boolean; } /** * Resolves the applicable policy for the given scope (kind + productId, channelId, etc.). * Typically used with `kind: "cancellation"` to find the policy that applies to a booking. */ export declare function useResolvePolicy(filters: ResolvePolicyFilters, options?: UseResolvePolicyOptions): import("@tanstack/react-query").UseQueryResult | null | undefined; currentVersionId?: string | null | undefined; }; assignment: { policyId: string; scope: "product" | "supplier" | "channel" | "market" | "organization" | "global"; priority: number; id: string; productId: string | null; channelId: string | null; supplierId: string | null; marketId: string | null; organizationId: string | null; createdAt: string; updatedAt: string; validFrom?: string | null | undefined; validTo?: string | null | undefined; metadata?: Record | null | undefined; }; version: { title: string; id: string; policyId: string; version: number; status: "draft" | "published" | "retired"; body: string | null; publishedAt: string | null; publishedBy: string | null; createdAt: string; updatedAt: string; retiredAt?: string | null | undefined; metadata?: Record | null | undefined; } | null; rules: { ruleType: "custom" | "window" | "percentage" | "flat_amount" | "date_range"; sortOrder: number; id: string; policyVersionId: string; label: string | null; daysBeforeDeparture: number | null; refundPercent: number | null; flatAmountCents: number | null; currency: string | null; createdAt: string; updatedAt: string; refundType?: "cash" | "credit" | "cash_or_credit" | "none" | null | undefined; validFrom?: string | null | undefined; validTo?: string | null | undefined; conditions?: Record | null | undefined; }[]; } | null; }>, Error>;