import type { insertContractAttachmentSchema, updateContractAttachmentSchema } from "@voyant-travel/legal/contracts/validation"; import type { z } from "zod"; export type CreateLegalContractAttachmentInput = z.input; export type UpdateLegalContractAttachmentInput = z.input; export interface UploadLegalContractAttachmentInput { file: File; name?: string; kind?: string; } export declare function useLegalContractAttachmentMutation(): { create: import("@tanstack/react-query").UseMutationResult<{ contractId: string; data: { kind: string; name: string; id: string; contractId: string; mimeType: string | null; fileSize: number | null; storageKey: string | null; checksum: string | null; createdAt: string; 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; metadata?: Record | null | undefined; }; }, Error, { contractId: string; input: CreateLegalContractAttachmentInput; }, unknown>; update: import("@tanstack/react-query").UseMutationResult<{ contractId: string; data: { kind: string; name: string; id: string; contractId: string; mimeType: string | null; fileSize: number | null; storageKey: string | null; checksum: string | null; createdAt: string; 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; metadata?: Record | null | undefined; }; }, Error, { contractId: string; id: string; input: UpdateLegalContractAttachmentInput; }, unknown>; remove: import("@tanstack/react-query").UseMutationResult<{ contractId: string; data: { success: boolean; }; }, Error, { contractId: string; id: string; }, unknown>; upload: import("@tanstack/react-query").UseMutationResult<{ contractId: string; data: { kind: string; name: string; id: string; contractId: string; mimeType: string | null; fileSize: number | null; storageKey: string | null; checksum: string | null; createdAt: string; 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; metadata?: Record | null | undefined; }; }, Error, { contractId: string; input: UploadLegalContractAttachmentInput; }, unknown>; replaceFile: import("@tanstack/react-query").UseMutationResult<{ contractId: string; data: { kind: string; name: string; id: string; contractId: string; mimeType: string | null; fileSize: number | null; storageKey: string | null; checksum: string | null; createdAt: string; 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; metadata?: Record | null | undefined; }; }, Error, { contractId: string; id: string; input: UploadLegalContractAttachmentInput; }, unknown>; };