import { Parser, ParserResult } from "tarsec";
import { AgencyConfig } from "./config.js";
import { AgencyNode, AgencyProgram } from "./types.js";
export declare const agencyNode: Parser<AgencyNode[]>;
export declare const agencyParser: Parser<AgencyProgram>;
export declare const normalizeCode: (code: string) => string;
export declare function replaceBlankLines(input: string): string;
export declare function _parseAgency(input: string, config?: AgencyConfig): ParserResult<AgencyProgram>;
export type ParseAgencyErrorData = {
    line: number;
    column: number;
    length: number;
    message: string;
    prettyMessage: string;
};
export type ParseAgencyResult = {
    success: true;
    result: AgencyProgram;
    rest: string;
} | {
    success: false;
    message?: string;
    rest: string;
    errorData?: ParseAgencyErrorData;
};
export declare function parseAgency(input: string, config?: AgencyConfig, applyTemplate?: boolean, lower?: boolean): ParseAgencyResult;
