import { Context, Effect, Layer, Stream } from "effect"; import { ChainHead } from "../query/chain-head.js"; import { RequestDedup, RpcCache } from "../rpc/index.js"; export type QueryOptions = { readonly ttl?: number | undefined; readonly blockScoped?: boolean | undefined; readonly chainId?: number | undefined; }; export type WatchOptions = QueryOptions & { readonly refetchOn: Stream.Stream; }; export type QueryClientShape = { readonly query: (key: string, effect: Effect.Effect, options?: QueryOptions | undefined) => Effect.Effect; readonly watch: (key: string, effect: Effect.Effect, options: WatchOptions) => Stream.Stream; }; declare const QueryClient_base: Context.TagClass; export declare class QueryClient extends QueryClient_base { } export declare const QueryClientLive: Layer.Layer; export {}; //# sourceMappingURL=client.d.ts.map