import type { insertContractSchema, updateContractSchema } from "@voyant-travel/legal/contracts/validation"; import type { z } from "zod"; export type CreateLegalContractInput = z.input; export type UpdateLegalContractInput = z.input; export interface SendLegalContractInputBody { /** Customer email to deliver the contract to. */ recipientEmail?: string | null; /** Subject line for the outgoing email. */ subject?: string | null; /** Plain-text or HTML body that the operator typed in the send dialog. */ message?: string | null; } export interface SendLegalContractInput { id: string; input?: SendLegalContractInputBody; } export declare function useLegalContractMutation(): { create: import("@tanstack/react-query").UseMutationResult<{ language: string; scope: "other" | "customer" | "supplier" | "partner" | "channel"; status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; title: string; id: string; contractNumber: string | null; stageHistory: { stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null; transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided"; enteredAt: string; actorId?: string | null | undefined; }[]; templateVersionId: string | null; seriesId: string | null; personId: string | null; organizationId: string | null; supplierId: string | null; channelId: string | null; bookingId: string | null; renderedBodyFormat: "markdown" | "html" | "lexical_json"; renderedBody: string | null; createdAt: string; updatedAt: string; variables?: Record | null | undefined; metadata?: Record | null | undefined; targetKind?: "booking" | "proposal_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined; targetId?: string | null | undefined; targetProvider?: string | null | undefined; targetSourceRef?: string | null | undefined; legacyTransactionOfferId?: string | null | undefined; legacyTransactionOrderId?: string | null | undefined; personFirstName?: string | null | undefined; personLastName?: string | null | undefined; personEmail?: string | null | undefined; personPhone?: string | null | undefined; issuedAt?: string | null | undefined; sentAt?: string | null | undefined; executedAt?: string | null | undefined; expiresAt?: string | null | undefined; voidedAt?: string | null | undefined; }, Error, { scope: "other" | "customer" | "supplier" | "partner" | "channel"; title: string; expiresAt?: string | null | undefined; language?: string | undefined; variables?: Record | null | undefined; metadata?: Record | null | undefined; targetKind?: "booking" | "proposal_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined; targetId?: string | null | undefined; targetProvider?: string | null | undefined; targetSourceRef?: string | null | undefined; legacyTransactionOfferId?: string | null | undefined; legacyTransactionOrderId?: string | null | undefined; contractNumber?: string | null | undefined; status?: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | undefined; templateVersionId?: string | null | undefined; seriesId?: string | null | undefined; personId?: string | null | undefined; organizationId?: string | null | undefined; supplierId?: string | null | undefined; channelId?: string | null | undefined; bookingId?: string | null | undefined; }, unknown>; update: import("@tanstack/react-query").UseMutationResult<{ language: string; scope: "other" | "customer" | "supplier" | "partner" | "channel"; status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; title: string; id: string; contractNumber: string | null; stageHistory: { stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null; transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided"; enteredAt: string; actorId?: string | null | undefined; }[]; templateVersionId: string | null; seriesId: string | null; personId: string | null; organizationId: string | null; supplierId: string | null; channelId: string | null; bookingId: string | null; renderedBodyFormat: "markdown" | "html" | "lexical_json"; renderedBody: string | null; createdAt: string; updatedAt: string; variables?: Record | null | undefined; metadata?: Record | null | undefined; targetKind?: "booking" | "proposal_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined; targetId?: string | null | undefined; targetProvider?: string | null | undefined; targetSourceRef?: string | null | undefined; legacyTransactionOfferId?: string | null | undefined; legacyTransactionOrderId?: string | null | undefined; personFirstName?: string | null | undefined; personLastName?: string | null | undefined; personEmail?: string | null | undefined; personPhone?: string | null | undefined; issuedAt?: string | null | undefined; sentAt?: string | null | undefined; executedAt?: string | null | undefined; expiresAt?: string | null | undefined; voidedAt?: string | null | undefined; }, Error, { id: string; input: UpdateLegalContractInput; }, unknown>; remove: import("@tanstack/react-query").UseMutationResult<{ success: boolean; }, Error, string, unknown>; issue: import("@tanstack/react-query").UseMutationResult<{ language: string; scope: "other" | "customer" | "supplier" | "partner" | "channel"; status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; title: string; id: string; contractNumber: string | null; stageHistory: { stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null; transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided"; enteredAt: string; actorId?: string | null | undefined; }[]; templateVersionId: string | null; seriesId: string | null; personId: string | null; organizationId: string | null; supplierId: string | null; channelId: string | null; bookingId: string | null; renderedBodyFormat: "markdown" | "html" | "lexical_json"; renderedBody: string | null; createdAt: string; updatedAt: string; variables?: Record | null | undefined; metadata?: Record | null | undefined; targetKind?: "booking" | "proposal_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined; targetId?: string | null | undefined; targetProvider?: string | null | undefined; targetSourceRef?: string | null | undefined; legacyTransactionOfferId?: string | null | undefined; legacyTransactionOrderId?: string | null | undefined; personFirstName?: string | null | undefined; personLastName?: string | null | undefined; personEmail?: string | null | undefined; personPhone?: string | null | undefined; issuedAt?: string | null | undefined; sentAt?: string | null | undefined; executedAt?: string | null | undefined; expiresAt?: string | null | undefined; voidedAt?: string | null | undefined; }, Error, string, unknown>; send: import("@tanstack/react-query").UseMutationResult<{ language: string; scope: "other" | "customer" | "supplier" | "partner" | "channel"; status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; title: string; id: string; contractNumber: string | null; stageHistory: { stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null; transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided"; enteredAt: string; actorId?: string | null | undefined; }[]; templateVersionId: string | null; seriesId: string | null; personId: string | null; organizationId: string | null; supplierId: string | null; channelId: string | null; bookingId: string | null; renderedBodyFormat: "markdown" | "html" | "lexical_json"; renderedBody: string | null; createdAt: string; updatedAt: string; variables?: Record | null | undefined; metadata?: Record | null | undefined; targetKind?: "booking" | "proposal_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined; targetId?: string | null | undefined; targetProvider?: string | null | undefined; targetSourceRef?: string | null | undefined; legacyTransactionOfferId?: string | null | undefined; legacyTransactionOrderId?: string | null | undefined; personFirstName?: string | null | undefined; personLastName?: string | null | undefined; personEmail?: string | null | undefined; personPhone?: string | null | undefined; issuedAt?: string | null | undefined; sentAt?: string | null | undefined; executedAt?: string | null | undefined; expiresAt?: string | null | undefined; voidedAt?: string | null | undefined; }, Error, string | SendLegalContractInput, unknown>; execute: import("@tanstack/react-query").UseMutationResult<{ language: string; scope: "other" | "customer" | "supplier" | "partner" | "channel"; status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; title: string; id: string; contractNumber: string | null; stageHistory: { stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null; transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided"; enteredAt: string; actorId?: string | null | undefined; }[]; templateVersionId: string | null; seriesId: string | null; personId: string | null; organizationId: string | null; supplierId: string | null; channelId: string | null; bookingId: string | null; renderedBodyFormat: "markdown" | "html" | "lexical_json"; renderedBody: string | null; createdAt: string; updatedAt: string; variables?: Record | null | undefined; metadata?: Record | null | undefined; targetKind?: "booking" | "proposal_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined; targetId?: string | null | undefined; targetProvider?: string | null | undefined; targetSourceRef?: string | null | undefined; legacyTransactionOfferId?: string | null | undefined; legacyTransactionOrderId?: string | null | undefined; personFirstName?: string | null | undefined; personLastName?: string | null | undefined; personEmail?: string | null | undefined; personPhone?: string | null | undefined; issuedAt?: string | null | undefined; sentAt?: string | null | undefined; executedAt?: string | null | undefined; expiresAt?: string | null | undefined; voidedAt?: string | null | undefined; }, Error, string, unknown>; voidContract: import("@tanstack/react-query").UseMutationResult<{ language: string; scope: "other" | "customer" | "supplier" | "partner" | "channel"; status: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; title: string; id: string; contractNumber: string | null; stageHistory: { stage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired"; previousStage: "void" | "draft" | "issued" | "sent" | "signed" | "executed" | "expired" | null; transition: "issued" | "sent" | "signed" | "executed" | "created" | "voided"; enteredAt: string; actorId?: string | null | undefined; }[]; templateVersionId: string | null; seriesId: string | null; personId: string | null; organizationId: string | null; supplierId: string | null; channelId: string | null; bookingId: string | null; renderedBodyFormat: "markdown" | "html" | "lexical_json"; renderedBody: string | null; createdAt: string; updatedAt: string; variables?: Record | null | undefined; metadata?: Record | null | undefined; targetKind?: "booking" | "proposal_version" | "program" | "product" | "inventory_item" | "supplier_channel_relationship" | "provider_source_ref" | null | undefined; targetId?: string | null | undefined; targetProvider?: string | null | undefined; targetSourceRef?: string | null | undefined; legacyTransactionOfferId?: string | null | undefined; legacyTransactionOrderId?: string | null | undefined; personFirstName?: string | null | undefined; personLastName?: string | null | undefined; personEmail?: string | null | undefined; personPhone?: string | null | undefined; issuedAt?: string | null | undefined; sentAt?: string | null | undefined; executedAt?: string | null | undefined; expiresAt?: string | null | undefined; voidedAt?: string | null | undefined; }, Error, string, unknown>; };