import type { ScopeDeclaration } from "./entry"; import { ScopeFunctionDeclaration, ScopeTypeDeclaration, ScopeVariableDeclaration } from "./entry"; import type { BuiltInType } from "../types"; import { BuiltInTypeAny, BuiltInTypeArray, BuiltInTypeBool, BuiltInTypeFunc, BuiltInTypeNull, BuiltInTypeNum, BuiltInTypeObj, BuiltInTypeStr, BuiltInTypeType, BuiltInTypeUndefined, BuiltInTypeVoid } from "../types"; import type { KipperProgramContext } from "../../program-ctx"; import { BuiltInFunction, BuiltInVariable } from "../runtime-built-ins"; import { Scope } from "./base"; export declare const BuiltInTypes: { any: BuiltInTypeAny; type: BuiltInTypeType; obj: BuiltInTypeObj; undefined: BuiltInTypeUndefined; void: BuiltInTypeVoid; null: BuiltInTypeNull; bool: BuiltInTypeBool; num: BuiltInTypeNum; str: BuiltInTypeStr; Func: BuiltInTypeFunc; Array: BuiltInTypeArray; }; export declare const BuiltInFunctions: { print: BuiltInFunction; len: BuiltInFunction; }; export declare const BuiltInVariables: { __name__: BuiltInVariable; NaN: BuiltInVariable; }; export declare class UniverseScope extends Scope { ctx: KipperProgramContext; readonly parent: undefined; constructor(ctx: KipperProgramContext); init(): void; protected ensureNotUsed(identifier: string): void; addVariable(declaration: BuiltInVariable): ScopeVariableDeclaration; addFunction(declaration: BuiltInFunction): ScopeFunctionDeclaration; addType(declaration: BuiltInType): ScopeTypeDeclaration; getEntry(identifier: string): ScopeDeclaration | undefined; getEntryRecursively(identifier: string): ScopeDeclaration | undefined; clearUniversalFunctions(): void; clearUniversalVariables(): void; }