HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux ip-10-0-8-47 6.8.0-1021-aws #23~22.04.1-Ubuntu SMP Tue Dec 10 16:31:58 UTC 2024 aarch64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.22
Disabled: NONE
Upload Files
File: /var/www/api.javaapp.co.uk/node_modules/google-auth-library/build/src/transporters.d.ts
import { Gaxios, GaxiosError, GaxiosOptions, GaxiosPromise, GaxiosResponse } from 'gaxios';
export interface Transporter {
    defaults?: GaxiosOptions;
    request<T>(opts: GaxiosOptions): GaxiosPromise<T>;
}
export interface BodyResponseCallback<T> {
    (err: Error | null, res?: GaxiosResponse<T> | null): void;
}
export interface RequestError extends GaxiosError {
    errors: Error[];
}
export declare class DefaultTransporter implements Transporter {
    /**
     * Default user agent.
     */
    static readonly USER_AGENT: string;
    /**
     * A configurable, replacable `Gaxios` instance.
     */
    instance: Gaxios;
    /**
     * 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<T>(opts: GaxiosOptions): GaxiosPromise<T>;
    get defaults(): GaxiosOptions;
    set defaults(opts: GaxiosOptions);
    /**
     * Changes the error to include details from the body.
     */
    private processError;
}