interface PostmanEnvironmentJSON { id: string; name: string; values: Array; _postman_variable_scope?: 'environment'; _postman_exported_at?: string; _postman_exported_using?: string; } export declare function isPostmanEnvironmentJSON(obj: unknown): obj is PostmanEnvironmentJSON; export declare class PostmanEnvironment { /** * Loads the Postman environment from the given file content or posted file. * * @param file * File content or posted file. * * @return * Promise of PostmanEnvironment instance. */ static fromFile(file: (string | File)): Promise; /** * Loads the Postman Environment from the given Postman JSON. * * @param json * Postman JSON. * * @return * PostmanEnvironment instance. */ static fromJSON(json: unknown): PostmanEnvironment; /** * Loads the Postman Environment from the given URL. * * @param url * URL to load from. * * @return * Promise of PostmanEnvironment instance. */ static fromURL(url: string): Promise; protected constructor(id: string, name: string, values: Array); readonly id: string; readonly name: string; readonly values: Array; /** * Retrieves all values for the given key or regular expression. * * @param key * Key or expression of the value to retrieve. * * @return * Postman Environment value or `undefined`. */ getAllValuesOf(key: (string | RegExp)): Array; /** * Retrieves the last active value for the given key or regular expression. * * @param key * Key or expression of the value to retrieve. * * @return * Postman Environment value or `undefined`. */ getLastValueOf(key: (string | RegExp)): (PostmanEnvironment.Value | undefined); /** * Retrieves the first active value for the given key or regular expression. * * @param key * Key or expression of the value to retrieve. * * @return * Postman Environment value or `undefined`. */ getValueOf(key: (string | RegExp)): (PostmanEnvironment.Value | undefined); } export declare namespace PostmanEnvironment { interface Value { enabled?: boolean; key: string; type: string; value: string; } type ValueType = ('default' | 'secret'); } export default PostmanEnvironment;