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 _print(...messages: any[]): void;
export declare function _printJSON(obj: any): void;
export declare function _parseJSON(text: string): any;
/** Deprecated context-injected wrapper kept in place during the ALS
 *  migration so the registry/codegen path keeps working until the
 *  follow-up cleanup PR removes it. New stdlib `.agency` files should
 *  call `_input` instead. */
export declare function __internal_input(ctx: RuntimeContext<any>, stack: StateStack, _threads: ThreadStore, prompt: string): Promise<string>;
/** ALS-reading replacement. Same body as `__internal_input`. */
export declare function _input(prompt: string): Promise<string>;
/** Deprecated; see comment on `__internal_input`. */
export declare function __internal_sleep(ctx: RuntimeContext<any>, stack: StateStack, _threads: ThreadStore, ms: number): Promise<void>;
/** ALS-reading replacement for `__internal_sleep`. */
export declare function _sleep(ms: number): Promise<void>;
export declare function _round(num: number, precision: number): number;
export declare function _read(dir: string, filename: string, offset?: number, limit?: number): Promise<string>;
declare const VALID_WRITE_MODES: readonly ["overwrite", "append", "create-only"];
export type WriteMode = typeof VALID_WRITE_MODES[number];
export declare function _write(dir: string, filename: string, content: string, mode?: WriteMode): Promise<boolean>;
export declare function _readImage(dir: string, filename: string): Promise<string>;
export declare function _notify(title: string, message: string): Promise<boolean>;
export declare function _mostCommon(items: any[]): any;
export declare function _keys(obj: any): string[];
export declare function _values(obj: any): any[];
export declare function _entries(obj: any): {
    key: string;
    value: any;
}[];
export declare function _range(startOrN: number, end?: number): number[];
export {};
