/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
import { ParserTracer } from 'peggy';
import { DSLLanguageOptions, DSLResult } from './types';
export interface SoftError {
    type: string;
    endColumn: number;
    endLineNumber: number;
    startColumn: number;
    startLineNumber: number;
    message: string;
}
export interface DSLParserOptions extends DSLLanguageOptions {
    startRule?: string;
    tracer?: ParserTracer;
    softErrorHandler?: (error: SoftError) => void;
    validator?: (object: any) => void;
}
export declare const DSLParser: {
    parse(code: string, options?: DSLParserOptions): DSLResult;
};
