/** * Base exception for all Simai parsing errors */ export declare class SimaiException extends Error { /** * Line number where the error occurred */ readonly line: number; /** * Character position in the line where the error occurred */ readonly character: number; constructor(line: number, character: number, message?: string); } /** * Thrown when invalid syntax is encountered */ export declare class InvalidSyntaxException extends SimaiException { constructor(line: number, character: number); } /** * Thrown when an unexpected character is found */ export declare class UnexpectedCharacterException extends SimaiException { readonly expected: string; constructor(line: number, character: number, expected: string); } /** * Thrown when syntax is valid but not supported */ export declare class UnsupportedSyntaxException extends SimaiException { constructor(line: number, character: number); } /** * Scope type flags for scope mismatch errors */ export declare enum ScopeType { Note = 1, Slide = 2, Global = 4 } /** * Thrown when a token appears in the wrong scope */ export declare class ScopeMismatchException extends SimaiException { readonly correctScope: ScopeType; constructor(line: number, character: number, correctScope: ScopeType); } /** * Thrown when a section (brackets, braces, etc.) is not terminated */ export declare class UnterminatedSectionException extends SimaiException { constructor(line: number, character: number); } //# sourceMappingURL=errors.d.ts.map