import { ApiPromise } from '@polkadot/api'; import type { HexString } from '@polkadot/util/types'; export declare const logger: import("pino").Logger; type FetchStorageConfigItem = HexString | string | Record | Record[] | (string | any)[]>; export type FetchStorageConfig = FetchStorageConfigItem[]; /** * Convert fetch-storage configs to prefixes for fetching. */ export declare const getPrefixesFromConfig: (config: FetchStorageConfig, api: ApiPromise) => Promise; type FetchStoragesParams = { block?: number | string | null; endpoint?: string | string[]; dbPath?: string; config: FetchStorageConfig; }; /** * Fetch storages and save in a local db */ export declare const fetchStorages: ({ block, endpoint, dbPath, config }: FetchStoragesParams) => Promise; export declare const startFetchStorageWorker: (options: FetchStoragesParams) => Promise<{ worker: import("comlink").Remote<{ startFetch: (options: FetchStoragesParams) => Promise; }>; terminate: () => Promise; } | null>; export {};