import { InvoiceDetails, UseToastReturn } from '@smartinvoicexyz/types';
import { Hex } from 'viem';
import { SimulateContractErrorType, WriteContractErrorType } from './types';
export declare const useRelease: ({ invoice, milestone, onTxSuccess, toast, }: {
    invoice: Partial<InvoiceDetails>;
    milestone?: number;
    onTxSuccess: () => void;
    toast: UseToastReturn;
}) => {
    writeAsync: () => Promise<Hex | undefined>;
    isLoading: boolean;
    prepareError: SimulateContractErrorType | null;
    writeError: WriteContractErrorType | null;
};
