/opt/canhelp/node_modules/googleapis-common/build/src
Edit: /opt/canhelp/node_modules/googleapis-common/build/src/util.d.ts (797B)
import { GaxiosResponse } from 'gaxios';
import { GaxiosResponseWithHTTP2 } from './http2';
export type HeadersInit = ConstructorParameters
[0];
/**
* A utility for converting potential {@link Headers `Headers`} objects to plain headers objects.
*
* @param headers any compatible `HeadersInit` (`Headers`, (string, string)[], {})
* @returns the headers in `Record` form.
*/
export declare function headersToClassicHeaders>(headers: HeadersInit): T;
/**
* marshall a GaxiosResponse into a library-friendly type.
*
* @param res the Gaxios Response
* @returns the GaxiosResponse with HTTP2-ready/compatible headers
*/
export declare function marshallGaxiosResponse(res?: T): GaxiosResponseWithHTTP2;