import type { EngineTrustMarker } from "../engine-trust/marker.ts";
/** Facts about the running process; injectable so the decision is testable on any runtime. */
export interface BundledBunHost {
    readonly main: string | undefined;
    readonly execPath: string;
    readonly platform: NodeJS.Platform;
    readonly shimRoots: readonly string[];
    /** The generation this process adopted; absent for a process that runs without one. */
    readonly trust?: EngineTrustMarker | undefined;
}
export declare function isCompiledBunExecutable(main: string | undefined): boolean;
/**
 * The directory holding this executable's `bun`/`bunx` commands, created on first use; `undefined`
 * outside a compiled executable, or when no candidate root is writable.
 */
export declare function bundledBunDir(host?: BundledBunHost): string | undefined;
/** `env` with the bundled `bun` directory appended to its PATH when this process is a compiled executable. */
export declare function withBundledBunCommands(env: NodeJS.ProcessEnv, host?: BundledBunHost): NodeJS.ProcessEnv;
//# sourceMappingURL=bundled-bun.d.ts.map