Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / gcp-metadata / build / src / index.d.ts
diff --git a/legacy-libs/gcp-metadata/build/src/index.d.ts b/legacy-libs/gcp-metadata/build/src/index.d.ts
new file mode 100644 (file)
index 0000000..408349d
--- /dev/null
@@ -0,0 +1,29 @@
+/**
+ * Copyright 2018 Google LLC
+ *
+ * Distributed under MIT license.
+ * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT
+ */
+/// <reference types="node" />
+import { OutgoingHttpHeaders } from 'http';
+export declare const HOST_ADDRESS = "http://metadata.google.internal.";
+export declare const BASE_PATH = "/computeMetadata/v1";
+export declare const BASE_URL: string;
+export declare const HEADER_NAME = "Metadata-Flavor";
+export declare const HEADER_VALUE = "Google";
+export declare const HEADERS: Readonly<{
+    [HEADER_NAME]: string;
+}>;
+export interface Options {
+    params?: {
+        [index: string]: string;
+    };
+    property?: string;
+    headers?: OutgoingHttpHeaders;
+}
+export declare function instance<T = any>(options?: string | Options): Promise<T>;
+export declare function project<T = any>(options?: string | Options): Promise<T>;
+/**
+ * Determine if the metadata server is currently available.
+ */
+export declare function isAvailable(): Promise<boolean>;