import type { ChainWithSubgraph } from '../../clients/chain.js'; export type SubgraphVariables = Record; export type SubgraphClient = { /** Endpoint that queries are sent to */ url: string; /** Sends a query to the subgraph, returning the `data` payload */ request: (query: string, variables?: TVariables, requestHeaders?: HeadersInit) => Promise; }; /** * Adds `id` to any selection set that asks for `name` without it, so that * {@link hashInvalidNames} can check each returned name against its namehash. */ export declare const injectIdSelections: (query: string) => string; /** * Replaces any `name` that doesn't hash to its own `id` with the namehash of * that name, flagging it as `invalidName`. Mutates the data in place. */ export declare const hashInvalidNames: (data: unknown) => void; export declare const createSubgraphClient: <_chain extends ChainWithSubgraph>(client: { chain: _chain; }) => SubgraphClient; //# sourceMappingURL=client.d.ts.map