export declare class SyntaxError extends Error { static buildMessage(expected: string, found: string): string; message: string; expected: string; found: string; location: any; name: string; constructor(message: string, expected: string, found: string, location: any); } export interface IParseOptions { filename?: string; startRule?: string; tracer?: any; [key: string]: any; } export declare type ParseFunction = (input: string, options: IParseOptions) => any; export declare const parse: ParseFunction;