import { Bag } from "../../utils"; import { RestrictedCrochetPackage } from "../pkg"; import { CrochetType, CrochetValue } from "../primitives"; import { CrochetTest, World } from "../world"; export declare class CrochetModule { readonly world: World; readonly filename: string; readonly pkg: RestrictedCrochetPackage; readonly local_types: Bag; readonly local_values: Bag; readonly open_namespaces: Set; constructor(world: World, filename: string, pkg: RestrictedCrochetPackage); get relative_filename(): string; get qualified_name(): string; namespace_allowed(ns: string): boolean; open_namespace(ns: string): void; private namespaced; try_lookup_type(name: string): CrochetType | null; lookup_type(name: string): CrochetType; add_type(name: string, type: CrochetType, local: boolean): void; try_lookup_value(name: string): CrochetValue | null; lookup_value(name: string): CrochetValue; add_value(name: string, value: CrochetValue, local: boolean): void; add_test(test: CrochetTest): void; }