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 PostRequestOptions = { /** * 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; /** * The body of the request, should match the content type of the request */ body?: any; /** * Specific client overrides for this request to override endlessConfig */ overrides?: ClientConfig; }; type PostEndlessRequestOptions = Omit; /** * Main function to do a Post request * * @param options PostRequestOptions * @returns */ declare function post(options: PostRequestOptions): Promise>; declare function postEndlessFullNode(options: PostEndlessRequestOptions): Promise>; declare function postEndlessIndexer(options: PostEndlessRequestOptions): Promise>; declare function postEndlessFaucet(options: PostEndlessRequestOptions): Promise>; /** * Makes a post request to the pepper service * * @param options GetEndlessRequestOptions * @returns EndlessResponse */ declare function postEndlessPepperService(options: PostEndlessRequestOptions): Promise>; declare function postEndlessProvingService(options: PostEndlessRequestOptions): Promise>; export { type PostEndlessRequestOptions, type PostRequestOptions, post, postEndlessFaucet, postEndlessFullNode, postEndlessIndexer, postEndlessPepperService, postEndlessProvingService };