import type { Network } from "@saberhq/solana-contrib"; import type { ProgramAccount } from "@saberhq/token-utils"; import type { PublicKey } from "@solana/web3.js"; import type { UseQueryOptions, UseQueryResult } from "react-query"; import type { FetchKeysFn } from ".."; import type { ProgramAccountParser } from "./programAccounts"; /** * Result of a parsed account query. */ export declare type BatchParsedAccountQueryResult = UseQueryResult>; /** * Data resulting from a batch query. */ export declare type BatchedParsedAccountQueryKeys = readonly (PublicKey | null | undefined)[] | null | undefined; /** * Data resulting from a batch query. */ export declare type BatchedParsedAccountQueryData = readonly (ProgramAccount | null | undefined)[] | null | undefined; export declare const makeBatchedParsedAccountQuery: (keys: BatchedParsedAccountQueryKeys, network: Network, fetchKeys: FetchKeysFn, parser: ProgramAccountParser, options?: Omit, unknown, BatchedParsedAccountQueryData, import("react-query").QueryKey>, "queryKey" | "queryFn">) => UseQueryOptions, unknown, BatchedParsedAccountQueryData, import("react-query").QueryKey>; /** * Parses accounts with the given parser, fetching them in batch. * * @param keys * @param parser * @returns */ export declare const useBatchedParsedAccounts: (keys: BatchedParsedAccountQueryKeys, parser: ProgramAccountParser, options?: Omit, unknown, BatchedParsedAccountQueryData, import("react-query").QueryKey>, "queryKey" | "queryFn">) => BatchParsedAccountQueryResult; //# sourceMappingURL=useBatchedParsedAccounts.d.ts.map