/** * Metadata for script API symbols — consumed by the CodeMirror completion * source in ScriptPanel. Keep in sync with the `api` object in `script.ts`. */ export type ApiKind = 'function' | 'variable' | 'namespace'; /** Simplified return-type tag used to pick member completions after `x.` or `fn().`. */ export type ApiReturnType = 'Room' | 'RoomArray' | 'Area' | 'AreaArray' | 'Env' | 'EnvArray' | 'Direction' | 'DirectionArray' | 'void' | 'number' | 'string' | 'boolean' | 'unknown'; export interface ApiEntry { name: string; kind: ApiKind; signature?: string; detail: string; /** Short human description shown in completion popup. */ info: string; /** Return type for functions / inferred type for variables. Used by the completion engine. */ returns?: ApiReturnType; } export declare const SCRIPT_API: ApiEntry[]; /** Fields available on an Area, used as completions after `.` on an area variable. */ export declare const AREA_FIELDS: ApiEntry[]; /** Fields available on an Env snapshot, used as completions after `.` on an env variable. */ export declare const ENV_FIELDS: ApiEntry[]; /** * A curated subset of Array.prototype members, used as completions after `.` * on any expression whose inferred type is an array. */ export declare const ARRAY_METHODS: ApiEntry[]; /** Fields available on a Room snapshot, used as completions after `.` on a room variable. */ export declare const ROOM_FIELDS: ApiEntry[];