@assistant/conversation
Version:
Actions SDK Fulfillment Library for Node.js
49 lines (48 loc) • 1.59 kB
TypeScript
/**
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import * as https from 'https';
/** @hidden */
export declare const deprecate: (feature: string, alternative: string) => void;
/** @public */
export interface JsonObject {
[key: string]: JsonValue;
}
/** @public */
export declare type JsonValue = any;
/** @hidden */
export declare const values: <T>(o: {
[key: string]: T;
}) => T[];
/** @hidden */
export declare const clone: <T>(o: T) => T;
/** @hidden */
export declare const stringify: (root: any, ...exclude: string[]) => string;
/** @hidden */
export declare type ProtoAny<TType, TSpec> = {
'@type': TType;
} & TSpec;
/** @hidden */
export declare const toArray: <T>(a: T | T[]) => T[];
/** @hidden */
export interface ApiClientObjectMap<TValue> {
[key: string]: TValue;
}
/** @hidden */
export declare const request: typeof https.request;
/** @hidden */
export declare const isJsonEqual: (o1: JsonObject, o2: JsonObject) => boolean;
/** @hidden */
export declare const sortJsonObject: (unsortedJson: JsonObject) => JsonObject;