/** * Parses the response from a batch call. * * @param responseText - responseText * @param parentRequestId - The parent request id. Used as a base for calculating batch items request ids. * @returns An array of responses, in the position of the response id's. */ declare function parse(responseText: string, parentRequestId?: number): { status?: number | undefined; response?: Record | undefined; }[]; export interface BatchRequest { method: string; headers?: Record; url: string; data?: string; } /** * Builds up a string of the data for a batch request. * * @param subRequests - The sub requests of the batch. * @param host - The host of the sender. * */ declare function build(subRequests: BatchRequest[], host: string): { body: string; boundary: string; }; export { parse, build };