UNPKG

oss-upload-tool

Version:
11 lines (10 loc) 482 B
import { IncomingHttpHeaders } from 'http'; export declare function isStatusCodeOK(code: number): boolean; export declare function getGlobalValue(...keys: string[]): string | undefined; export declare function safeSetEnv(k: string, v: string, f?: boolean): void; export declare function defaultVal<T>(v: T | undefined, d: T): T; export declare function getRemoteFileInfo(url: string): Promise<{ body: string; headers: IncomingHttpHeaders; etag?: string | undefined; }>;