import { Response } from 'node-fetch'; import { PossibleArray, qps, was } from './types'; export declare function toArray(value: PossibleArray | undefined): T[]; export declare function buildServiceRequestBody({ limit, offset, filters, }: { limit: number; offset: number; filters?: was.ListWebAppsFilters | was.ListWebAppFindingsFilters; }): string; export declare function isXMLResponse(response: Response): boolean; /** * @throws IntegrationError when response Content-Type is not XML */ export declare function ensureXMLResponse(response: Response): void; /** * Validates the response Content-Type is XML and parses the body. * * @throws IntegrationError when response Content-Type is not XML * @throws IntegrationError when response.bodyUsed * * @returns the parsed XML as a JSON object */ export declare function parseXMLResponse(response: Response): Promise; /** * Validates the response Content-Type is XML and parses the body. * * @throws IntegrationError when response Content-Type is not XML * @throws IntegrationProviderAPIError when the responseCode is not SUCCESS * * @returns the parsed XML as a JSON object */ export declare function extractServiceResponseFromResponseBody>(endpoint: string, response: Response): Promise; //# sourceMappingURL=util.d.ts.map