import { Hex } from 'viem'; import { Decimal } from 'decimal.js'; import { TotalFeeEstimation } from '@ecp.eth/sdk/channel-manager'; type ChannelFeeData = { fee: TotalFeeEstimation; usdPerEth?: Decimal; nativeTokenCostInEthText: string; nativeTokenCostInUSDText?: string; erc20CostText?: string; }; type ChannelFeeResult = { data: ChannelFeeData | undefined; error: undefined; pending: false; } | { data: undefined; error: unknown; pending: false; } | { data: ChannelFeeData | undefined; error: undefined; pending: true; }; declare function useChannelFee(params: { action: "post" | "edit"; channelId: bigint | string | undefined; address: Hex | undefined; content: string; app: Hex; toSignificantDigits?: number; channelManagerAddress?: Hex; } & ({ targetUri: string; } | { parentId: Hex; })): ChannelFeeResult; export { useChannelFee };