import { Token, Lexer, LexerState } from "moo"; import { Set } from "immutable"; export declare const coreLexer: Lexer; export declare class TypeLexer { private typeIds; constructor(typeIds?: Set); addIdentifier(typeIdentifier: string): void; next(): Token | undefined; save(): LexerState; reset(chunk?: string, state?: LexerState): void; formatError(token: Token, message?: string): string; has(tokenType: string): boolean; } export declare const lexer: TypeLexer;