import { MessageDataModelError, MessageSyntaxError } from '../errors.ts'; import type * as CST from './types.ts'; export declare class ParseContext { readonly errors: MessageSyntaxError[]; readonly resource: boolean; readonly source: string; constructor(source: string, opt?: { resource?: boolean; }); onError(type: Exclude, start: number, end: number): void; onError(type: 'missing-syntax', start: number, char: string): void; } /** * Parse the string syntax representation of a message into * its corresponding {@link CST} representation. */ export declare function parseCST(source: string, opt?: { resource?: boolean; }): CST.Message;