@cyberk/hyperion-sdk
Version:
Hyperion SDK from Cyberk
11 lines (10 loc) • 630 B
TypeScript
import type { QueryObserverOptions } from "@tanstack/query-core";
import { CHAIN_IDS } from "../constants";
import { getAllPairsQueryKey } from "../query/getAllPairs";
import { PairInfo } from "../types";
export declare const useAllPairs: ({ factoryAddress, chainId, options: observerOptions, limit, }: {
factoryAddress: string;
chainId: CHAIN_IDS;
options?: Omit<QueryObserverOptions<PairInfo[] | undefined, Error, PairInfo[] | undefined, ReturnType<typeof getAllPairsQueryKey>>, "queryKey" | "queryFn">;
limit?: number;
}) => import("@tanstack/react-query").DefinedUseQueryResult<PairInfo[] | undefined, Error>;