import { CompilerError } from '@utam/types'; type MessageType = 'lint error' | 'compilation error' | 'lint help'; /** * replace %s in the string with message * @param messageType message type for readability * @param message string before replacement * @param args parameters to replace * @returns string with replaced parameters */ export declare function replaceFormattingArguments(messageType: MessageType, message: string, args?: string[]): string; /** * helper method to put errors config to map * exported because used in unit tests * @param arr array with configured errors */ export declare function setConfigMapIfEmpty(arr: CompilerError[]): void; /** * get error object based on its code * @param errCode code of the error * @param errCode code with an error, currently number * @returns error object */ export declare function getConfiguredError(errCode: number): CompilerError; /** * build full error message * @param messageType message type for readability * @param error error object * @param args format parameters to replace in the message * @returns string with full error message */ export declare function buildMessageFromConfig(messageType: MessageType, error: CompilerError, args?: string[]): string; export {}; //# sourceMappingURL=errors.d.ts.map