import {MatchResult, Grammar, Semantics} from 'ohm-js';
interface LineAndColumnInfo { offset: number; lineNumber: number; colNum: number; line: string; prevLine: string; nextLine: string; toString(...ranges: number[][]): string;}
export function toAST(matchResult: MatchResult, mapping?: {}): {};export function semanticsForToAST(g: Grammar): Semantics;
export function getLineAndColumn(str: string, offset: number): LineAndColumnInfo;
export function getLineAndColumnMessage( str: string, offset: number, ...ranges: number[][]): string;
interface Example { grammar: string; rule: string; example: string; shouldMatch: boolean;}
export function extractExamples(grammarsDef: string): [Example];