import { Address } from '@circles-sdk/utils'; import { JsonRpcProvider, Provider } from 'ethers'; import { PathfindingResult } from './types.js'; export interface GasCostOptions { path?: PathfindingResult; safetyMarginPct?: number; fallback?: 'none' | 'heuristic'; blockTag?: 'latest' | 'pending' | bigint | number | string; } export interface EstimateGasForPathParams { provider: Provider | JsonRpcProvider; hubAddress: Address; from: Address; path?: Pick; options?: Omit; } export declare function estimateGasForPath({ provider, hubAddress, from, path, options }: EstimateGasForPathParams): Promise; export interface GetGasCostParamsBase { provider: Provider | JsonRpcProvider; hubAddress: Address; from: Address; } export interface GetGasCostWithExistingPath extends GetGasCostParamsBase { path: PathfindingResult; rpcUrl?: never; to?: never; amount?: never; options?: Omit; } export interface GetGasCostWithDiscovery extends GetGasCostParamsBase { rpcUrl: string; to: Address; amount: bigint; path?: never; options?: GasCostOptions; } export type GetGasCostParams = GetGasCostWithExistingPath | GetGasCostWithDiscovery; export declare function getGasCost(params: GetGasCostParams): Promise; //# sourceMappingURL=gas.d.ts.map