import { UseQueryOptions } from '@tanstack/react-query'; import { IInvoice } from '../../types/invoice.types'; /** * Invoice query definitions following React Query patterns */ export declare const invoiceQueries: { all: () => readonly ["invoice"]; lists: () => readonly ["invoice", "list"]; details: () => readonly ["invoice", "detail"]; detail: (id: string) => readonly ["invoice", "detail", string]; html: (id: string, organisationId: string) => readonly ["invoice", "html", string, string]; pdf: (id: string, organisationId: string) => readonly ["invoice", "pdf", string, string]; }; /** * Get an invoice by its ID * @description This hook is used to get an invoice by its ID * @param invoiceId - The ID of the invoice to get * @returns The invoice */ export declare const useGetInvoiceById: (invoiceId: string | undefined, options?: Omit, "queryKey" | "queryFn">) => import('@tanstack/react-query').UseQueryResult; /** * Get invoice HTML string for preview * @description This hook is used to get the invoice HTML string for preview using the correct communications endpoint * @param invoiceId - The ID of the invoice to get HTML for * @returns The invoice HTML string */ export declare const useGetInvoiceHtml: (invoiceId: string | undefined, options?: Omit, "queryKey" | "queryFn">) => import('@tanstack/react-query').UseQueryResult; /** * Download invoice PDF * @description This hook is used to download the invoice PDF * @param invoiceId - The ID of the invoice to download PDF for * @returns The base64 encoded PDF data */ export declare const useDownloadInvoicePDF: (invoiceId: string | undefined, options?: Omit, "queryKey" | "queryFn">) => import('@tanstack/react-query').UseQueryResult;