UNPKG

1.71 kBTypeScriptView Raw
1/**
2 * Copyright 2018 Google Inc. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16import * as Debug from 'debug';
17import * as https from 'https';
18/** @hidden */
19export declare const debug: Debug.Debugger;
20/** @hidden */
21export declare const warn: Debug.Debugger;
22/** @hidden */
23export declare const error: (message?: any, ...optionalParams: any[]) => void;
24/** @hidden */
25export declare const info: (message?: any, ...optionalParams: any[]) => void;
26/** @hidden */
27export declare const deprecate: (feature: string, alternative: string) => void;
28/** @public */
29export interface JsonObject {
30 [key: string]: any;
31}
32/** @hidden */
33export declare const values: <T>(o: {
34 [key: string]: T;
35}) => T[];
36/** @hidden */
37export declare const clone: <T>(o: T) => T;
38/** @hidden */
39export declare const stringify: (root: any, ...exclude: string[]) => string;
40/** @hidden */
41export declare type ProtoAny<TType, TSpec> = {
42 '@type': TType;
43} & TSpec;
44/** @hidden */
45export declare const toArray: <T>(a: T | T[]) => T[];
46/** @hidden */
47export interface ApiClientObjectMap<TValue> {
48 [key: string]: TValue;
49}
50/** @hidden */
51export declare const request: typeof https.request;