UNPKG

482 BTypeScriptView Raw
1import { GaxiosPromise } from 'gaxios';
2import { APIRequestParams, BodyResponseCallback } from './api';
3/**
4 * Create and send request to Google API
5 * @param parameters Parameters used to form request
6 * @param callback Callback when request finished or error found
7 */
8export declare function createAPIRequest<T>(parameters: APIRequestParams): GaxiosPromise<T>;
9export declare function createAPIRequest<T>(parameters: APIRequestParams, callback: BodyResponseCallback<T>): void;