import { LoadEnvFileOptions } from "../loadEnvFile.js"; import { Context } from "node:vm"; //#region src/loadExternalFile/parseFileContent.d.ts type SandBoxContextOptions = { envVarOptions?: LoadEnvFileOptions; projectRequire?: NodeJS.Require; additionalEnvVars?: Record; /** * Map of specifier -> mocked export to be returned when code in the VM calls require(specifier). * Example: * mocks: { * '@intlayer/config/built': { getConfig: () => ({}), Locales: {} } * } */ mocks?: Record; /** * Optional alias map if you want to redirect specifiers. * Useful when user code imports a subpath you want to collapse. * Example: * aliases: { '@intlayer/config/built': '@intlayer/config' } */ aliases?: Record; }; declare const getSandBoxContext: (options?: SandBoxContextOptions) => Context; declare const parseFileContent: (fileContentString: string, options?: SandBoxContextOptions) => T | undefined; //#endregion export { SandBoxContextOptions, getSandBoxContext, parseFileContent }; //# sourceMappingURL=parseFileContent.d.ts.map