import type { AccountWithTokenProgram, MintWithTokenProgram, ParsableEntity } from ".."; import type { Address } from "../../address-util"; export * from "./simple-fetcher-impl"; export type BasicSupportedTypes = AccountWithTokenProgram | MintWithTokenProgram; export interface AccountFetcher { getAccount: (address: Address, parser: ParsableEntity, opts?: AccountFetchOptions) => Promise; getAccounts: (address: Address[], parser: ParsableEntity, opts?: AccountFetchOptions) => Promise>; getAccountsAsArray: (address: Address[], parser: ParsableEntity, opts?: AccountFetchOptions) => Promise>; populateAccounts: (accounts: ReadonlyMap, parser: ParsableEntity, now: number) => void; }