@intlayer/config
Version:
Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.
25 lines (24 loc) • 980 B
TypeScript
import { SandBoxContextOptions } from "./parseFileContent.js";
import { IntlayerConfig } from "@intlayer/types";
import { BuildOptions, Plugin } from "esbuild";
//#region src/loadExternalFile/loadExternalFile.d.ts
type ESBuildPlugin = Plugin;
type LoadExternalFileOptions = {
configuration?: IntlayerConfig;
buildOptions?: BuildOptions;
} & SandBoxContextOptions;
/**
* Load the content declaration from the given path
*
* Accepts JSON, JS, MJS and TS files as configuration
*/
declare const loadExternalFileSync: (filePath: string, options?: LoadExternalFileOptions) => any | undefined;
/**
* Load the content declaration from the given path
*
* Accepts JSON, JS, MJS and TS files as configuration
*/
declare const loadExternalFile: (filePath: string, options?: LoadExternalFileOptions) => Promise<any | undefined>;
//#endregion
export { ESBuildPlugin, LoadExternalFileOptions, loadExternalFile, loadExternalFileSync };
//# sourceMappingURL=loadExternalFile.d.ts.map