import type { Context, Value } from '../types'; /** * A function that displays to console.log by default (for a REPL). * * @param value the value to be represented and displayed. * @param externalContext a property of Context that can hold * any information required for external use (optional). */ export declare function rawDisplay(value: Value, str: string, _externalContext: any): any; export declare function error_message(value: Value, ...strs: string[]): void; export declare function timed(context: Context, f: Function, externalContext: any, displayBuiltin: (value: Value, str: string, externalContext: any) => Value): (...args: any[]) => any; export declare function is_number(v: Value): v is number; export declare function is_undefined(xs: Value): xs is undefined; export declare function is_string(xs: Value): xs is string; export declare function is_boolean(xs: Value): xs is boolean; export declare function is_object(xs: Value): boolean; export declare function is_function(xs: Value): boolean; export declare function is_NaN(x: Value): boolean; export declare function has_own_property(obj: Value, p: Value): any; export declare function is_array(a: Value): a is any[]; export declare function array_length(xs: Value[]): number; /** * Source version of parseInt. Both arguments are required. * * @param str String representation of the integer to be parsed. Required. * @param radix Base to parse the given `str`. Required. * * An error is thrown if `str` is not of type string, or `radix` is not an * integer within the range 2, 36 inclusive. */ export declare function parse_int(str: string, radix: number): number; /** * Returns the character at the given index of the given string. If the `index` is out of bounds, * returns `undefined`. */ export declare function char_at(str: string, index: number): string | undefined; /** * arity returns the number of parameters a given function `f` expects. * * @param f Function whose arity is to be found. Required. * * An error is thrown if `f` is not a function. */ export declare function arity(f: Function): number; /** * Gets the current time as returned by `new Date().getTime()` */ export declare function get_time(): number; /** * Compute structural equality for the two provided arguments. */ export declare function equal(xs: any, ys: any): boolean;