import { Context, Effect, Layer } from "effect"; import type { Address, Hex } from "viem"; import type { ClientNotFoundError } from "../core/errors/index.js"; import { PublicClientService } from "../core/index.js"; import { GasPriceUnavailableError } from "../gas/errors.js"; import type { FeeEstimate, GasSpeed } from "../gas/estimator.js"; export type GasServiceShape = { readonly estimateFees: (params: { chainId: number; speed?: GasSpeed; }) => Effect.Effect; readonly getAllFeeEstimates: (params: { chainId: number; }) => Effect.Effect, GasPriceUnavailableError | ClientNotFoundError>; readonly getBaseFee: (params: { chainId: number; }) => Effect.Effect; readonly getMaxPriorityFee: (params: { chainId: number; }) => Effect.Effect; readonly estimateGas: (params: { chainId: number; data?: Hex; from?: Address; to: Address; value?: bigint; }) => Effect.Effect; readonly supportsEip1559: (params: { chainId: number; }) => Effect.Effect; }; declare const GasService_base: Context.TagClass; export declare class GasService extends GasService_base { } export declare const GasServiceLive: Layer.Layer; export {}; //# sourceMappingURL=service.d.ts.map