import { JBCurrency } from "src/constants"; import { Address } from "viem"; interface DistributePayoutsTxParams { /** * Project id to distribute from. */ projectId: bigint; /** * Amount to distribute in wei (18 decimals) */ amountWei: bigint; /** * Address of the project's terminal */ terminalAddress: Address; /** * Currency of the project's current funding cycle's distribution limit (1 for ETH, or 2 for USD). */ currency: JBCurrency; /** * Minimum number of tokens to return to the beneficiaryAddress. Defaults to 0. */ minReturnedTokens?: bigint; /** * Encoded metadata (e.g. 0x00..) */ metadata?: Address; } /** * Initiate a transaction to distribute from a project's ETH payment terminal. */ export declare function useEthPaymentTerminalDistributePayouts({ projectId, terminalAddress, amountWei, currency, minReturnedTokens, metadata, }: DistributePayoutsTxParams): { prepare: Pick, Error>, "error" | "data" | "fetchStatus" | "isError" | "isFetched" | "isFetchedAfterMount" | "isFetching" | "isLoading" | "isRefetching" | "isSuccess" | "refetch"> & { isIdle: boolean; status: "error" | "success" | "loading" | "idle"; internal: Pick, "dataUpdatedAt" | "errorUpdatedAt" | "failureCount" | "isLoadingError" | "isPaused" | "isPlaceholderData" | "isPreviousData" | "isRefetchError" | "isStale" | "remove">; } & { config: import("@wagmi/core").PrepareWriteContractResult; }; contractWrite: { data: import("@wagmi/core").WriteContractResult | undefined; error: Error | null; isError: boolean; isIdle: boolean; isLoading: boolean; isSuccess: boolean; reset: () => void; status: "error" | "success" | "loading" | "idle"; variables: ({ mode?: undefined; } & Partial, "args">, "address" | "abi" | "functionName">> & Omit, "args">, "address" | "abi" | "functionName"> & Partial<{ args?: readonly unknown[] | undefined; }> & { request?: undefined; }) | undefined; write: (() => void) | undefined; writeAsync: (() => Promise) | undefined; }; transaction: Pick, "error" | "data" | "fetchStatus" | "isError" | "isFetched" | "isFetchedAfterMount" | "isFetching" | "isLoading" | "isRefetching" | "isSuccess" | "refetch"> & { isIdle: boolean; status: "error" | "success" | "loading" | "idle"; internal: Pick; }; }; export {}; //# sourceMappingURL=useDistributeEthPaymentTerminal.d.ts.map