import { EndlessConfig } from '../api/endlessConfig.mjs'; import { EndlessResponse } from './types.mjs'; import { MimeType, AnyNumber, ClientConfig } from '../types/index.mjs'; import { EndlessApiType } from '../utils/const.mjs'; import '../utils/apiEndpoints.mjs'; import '../types/indexer.mjs'; type GetRequestOptions = { /** * The config for the API client */ endlessConfig: EndlessConfig; /** * The type of API endpoint to call e.g. fullnode, indexer, etc */ type: EndlessApiType; /** * The name of the API method */ originMethod: string; /** * The URL path to the API method */ path: string; /** * The content type of the request body */ contentType?: MimeType; /** * The accepted content type of the response of the API */ acceptType?: MimeType; /** * The query parameters for the request */ params?: Record; /** * Specific client overrides for this request to override endlessConfig */ overrides?: ClientConfig; }; type GetEndlessRequestOptions = Omit; /** * Main function to do a Get request * * @param options GetRequestOptions * @returns */ declare function get(options: GetRequestOptions): Promise>; declare function getEndlessFullNode(options: GetEndlessRequestOptions): Promise>; declare function getEndlessIndexer(options: GetEndlessRequestOptions): Promise>; declare function paginateWithCursor, Res extends Array<{}>>(options: GetEndlessRequestOptions): Promise; export { type GetEndlessRequestOptions, type GetRequestOptions, get, getEndlessFullNode, getEndlessIndexer, paginateWithCursor };