import { Context, Effect, Layer, Stream } from "effect"; import type { Address, Hex, TypedData } from "viem"; import type { SignMessageError, SignMessageParams, SignTransactionError, SignTransactionParams, SignTypedDataError, SignTypedDataParams, WalletProvider } from "../wallet/index.js"; import { AccountNotConnectedError, WalletProviderRef } from "../wallet/index.js"; export declare const UNKNOWN_CHAIN_ID = 0; export type WalletServiceShape = { readonly accounts: Effect.Effect, never>; readonly currentAccount: Effect.Effect; readonly chainId: Effect.Effect, never>; readonly currentChainId: Effect.Effect; readonly signMessage: (params: SignMessageParams) => Effect.Effect; readonly signTypedData: , primaryType extends keyof typedData | "EIP712Domain">(params: SignTypedDataParams) => Effect.Effect; readonly signTransaction: (params: SignTransactionParams) => Effect.Effect; }; declare const WalletService_base: Context.TagClass; export declare class WalletService extends WalletService_base { } export declare function makeWalletServiceLive(provider: WalletProvider): Layer.Layer; export declare const WalletServiceFromProviderRefLive: Layer.Layer; export declare const WalletServiceLive: Layer.Layer; export {}; //# sourceMappingURL=service.d.ts.map