/var/www/qr4y.gr/server/delivery/node_modules/google-auth-library/build/src
Edit: /var/www/qr4y.gr/server/delivery/node_modules/google-auth-library/build/src/transporters.d.ts (1349B)
import { GaxiosError, GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';
export interface Transporter {
request
(opts: GaxiosOptions): GaxiosPromise;
request(opts: GaxiosOptions, callback?: BodyResponseCallback): void;
request(opts: GaxiosOptions, callback?: BodyResponseCallback): GaxiosPromise | void;
}
export interface BodyResponseCallback {
(err: Error | null, res?: GaxiosResponse | null): void;
}
export interface RequestError extends GaxiosError {
errors: Error[];
}
export declare class DefaultTransporter {
/**
* Default user agent.
*/
static readonly USER_AGENT: string;
/**
* Configures request options before making a request.
* @param opts GaxiosOptions options.
* @return Configured options.
*/
configure(opts?: GaxiosOptions): GaxiosOptions;
/**
* Makes a request using Gaxios with given options.
* @param opts GaxiosOptions options.
* @param callback optional callback that contains GaxiosResponse object.
* @return GaxiosPromise, assuming no callback is passed.
*/
request(opts: GaxiosOptions): GaxiosPromise;
request(opts: GaxiosOptions, callback?: BodyResponseCallback): void;
/**
* Changes the error to include details from the body.
*/
private processError;
}