export { cliArguments, passThroughCLIArguments, scriptEntryPath } from "../arguments.ts"; /** * Logs an error that occurred while running a script. */ export declare function logScriptError(error: unknown): void; /** * A script callback function to invoke. * * @internal */ export type ScriptCallback = (...args: unknown[]) => unknown | Promise; /** * Cleans up services and exits the script cleanly. * * @param exitCode - Explicit exit code; when omitted, whatever `process.exitCode` the script set (default 0) stands. * @internal */ export declare function postScriptCleanup(signal?: NodeJS.Signals, exitCode?: number): Promise; /** * Runs a script callback and handles cleanup. A callback that throws exits 1; a clean return exits with * `process.exitCode` (default 0). * * @internal */ export declare function runScript(scriptCallback: ScriptCallback): Promise; /** * The ONE blessed way to build a child-process environment: the current environment with explicit overrides. Everything * outside `core/env` + this module is forbidden from touching `process.env` directly (enforced by * `scripts/lint-raw-env-argv.ts`) — read config through `$public`/`$private`. */ export declare function childEnv(overrides?: Record): NodeJS.ProcessEnv; //# sourceMappingURL=index.d.ts.map