import { CrochetValue } from "../../crochet"; import { XorShift } from "../../utils/xorshift"; import { Action, ActionChoice, Context, CrochetContext, CrochetModule, CrochetRelation, Environment, Machine, State, When } from "../intrinsics"; import { Namespace } from "../namespaces"; export declare function lookup_context(module: CrochetModule, name: string | null): import("../intrinsics").GlobalContext | CrochetContext; export declare function define_context(module: CrochetModule, context: CrochetContext): true; export declare function add_action(module: CrochetModule, context: Context, action: Action): void; export declare function add_event(context: Context, event: When): void; export declare function available_actions(context: Context, state: State, env_root: Environment, module: CrochetModule, random: XorShift, relations: Namespace, actor: CrochetValue): Machine; export interface EventChoice { env: Environment; event: When; } export declare function available_events(context: Context, state: State, env_root: Environment, module: CrochetModule, random: XorShift, relations: Namespace): Machine; export declare function mark_action_fired(action: Action, actor: CrochetValue): void;