import type { Budget } from "../budget.js"; import { type SandboxClosure, type SandboxMap, type SandboxValue } from "../values.js"; export type MapMethodName = "get" | "set" | "has" | "delete" | "clear" | "forEach" | "keys" | "values" | "entries"; export type MapMethodOptions = { budget: Budget; callClosure: (closure: SandboxClosure, args: readonly SandboxValue[], stack: readonly string[]) => Promise; }; export declare function isMapMethodName(value: string | number): value is MapMethodName; export declare function getMapMember(target: SandboxMap, property: string | number, options: MapMethodOptions): SandboxValue | undefined; export declare function callMapMethod(target: SandboxMap, methodName: MapMethodName, args: readonly SandboxValue[], options: MapMethodOptions, stack?: readonly string[]): Promise;