@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
17 lines (16 loc) • 619 B
TypeScript
import { JsonMap } from '../../private/common/json.js';
export interface Environments {
[name: string]: JsonMap;
}
interface LoadEnvironmentOptions {
from?: string;
silent?: boolean;
}
/**
* Loads environments from a file.
* @param dir - The file path to load environments from.
* @returns The loaded environments.
*/
export declare function loadEnvironment(environmentName: string, fileName: string, options?: LoadEnvironmentOptions): Promise<JsonMap | undefined>;
export declare function environmentFilePath(fileName: string, options?: LoadEnvironmentOptions): Promise<string | undefined>;
export {};