import type { insertPolicyRuleSchema, updatePolicyRuleSchema } from "@voyant-travel/legal/policies/validation"; import type { z } from "zod"; export type CreateLegalPolicyRuleInput = z.input; export type UpdateLegalPolicyRuleInput = z.input; export declare function useLegalPolicyRuleMutation(): { create: import("@tanstack/react-query").UseMutationResult<{ 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; }, Error, { versionId: string; input: CreateLegalPolicyRuleInput; }, unknown>; update: import("@tanstack/react-query").UseMutationResult<{ 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; }, Error, { id: string; input: UpdateLegalPolicyRuleInput; }, unknown>; remove: import("@tanstack/react-query").UseMutationResult<{ versionId: string; data: { success: boolean; }; }, Error, { versionId: string; id: string; }, unknown>; };