import { type BookingCharterDetailRecord } from "../schemas.js"; export interface GenerateMybaContractInput { /** Override the template id snapshotted at booking time. */ templateIdOverride?: string | null; /** Locale for the contract; defaults server-side to "en". */ language?: string; /** Extra Liquid variables passed to the renderer. Merged on top of defaults. */ extraVariables?: Record; /** Custom title; default is `MYBA charter agreement — `. */ title?: string; } export interface GenerateMybaContractResult { contractId: string; charterDetails: BookingCharterDetailRecord; } /** * Generate (or fetch existing) MYBA contract for a whole-yacht charter * booking. Idempotent — if `mybaContractId` is already set on the booking, * the server returns the existing contract id without re-generating. * * Requires the template to wire `chartersContractsService` into Hono * context at app boot, otherwise the route returns 501. */ export declare function useGenerateMybaContract(): import("@tanstack/react-query").UseMutationResult;