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; export declare function _env(name: string): string | null; export declare function _exit(code: number): Promise; export declare function _isTTY(): boolean; export declare function _readStdin(): Promise; 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, stack: StateStack, _threads: ThreadStore, url: string): Promise; /** ALS-reading replacement for `__internal_openUrl`. */ export declare function _openUrl(url: string): Promise; /** Deprecated; see `_screenshot`. */ export declare function __internal_screenshot(ctx: RuntimeContext, stack: StateStack, _threads: ThreadStore, filepath: string, x: number, y: number, width: number, height: number): Promise; /** ALS-reading replacement for `__internal_screenshot`. */ export declare function _screenshot(filepath: string, x: number, y: number, width: number, height: number, allowedPaths?: string[]): Promise; export declare function _setTitle(title: string): void; /** The policy scope for std::openUrl: the hostname, so "approve always * here" covers one site. A URL with no hostname (`mailto:`, `file:`) and * a string that is not a URL both return the whole string, so each pins * only itself; a shared "" would let one approval cover them all. */ export declare function _urlHost(url: string): string;