UNPKG

353 BTypeScriptView Raw
1/// <reference types="node" />
2import { Provider } from "@aws-sdk/types";
3export declare type GetterFromEnv<T> = (env: NodeJS.ProcessEnv) => T | undefined;
4/**
5 * Get config value given the environment variable name or getter from
6 * environment variable.
7 */
8export declare const fromEnv: <T = string>(envVarSelector: GetterFromEnv<T>) => Provider<T>;