import type { RuntimeContext } from "../runtime/state/context.js";
import type { StateStack } from "../runtime/state/stateStack.js";
import type { ThreadStore } from "../runtime/state/threadStore.js";
export declare function _args(): string[];
export declare function _cwd(): string;
/**
 * Return the absolute path of the directory containing the *compiled
 * JavaScript* of the Agency module that initiated the current run.
 * Reads through the ALS frame seeded by `runNode` / `runInBootstrapFrame`.
 * Falls back to `process.cwd()` when no Agency frame is active (e.g.
 * the helper is called from non-Agency code).
 */
export declare function _dirname(): string;
export declare function _env(name: string): string | null;
export declare function _exit(code: number): void;
export declare function _setEnv(name: string, value: string): void;
/** Deprecated context-injected wrapper kept during the ALS migration;
 *  see `_openUrl`. */
export declare function __internal_openUrl(ctx: RuntimeContext<any>, stack: StateStack, _threads: ThreadStore, url: string): Promise<void>;
/** ALS-reading replacement for `__internal_openUrl`. */
export declare function _openUrl(url: string): Promise<void>;
/** Deprecated; see `_screenshot`. */
export declare function __internal_screenshot(ctx: RuntimeContext<any>, stack: StateStack, _threads: ThreadStore, filepath: string, x: number, y: number, width: number, height: number): Promise<void>;
/** ALS-reading replacement for `__internal_screenshot`. */
export declare function _screenshot(filepath: string, x: number, y: number, width: number, height: number, allowedPaths?: string[]): Promise<void>;
