import { Token } from '../facades/roomlescript-antlr-facade'; /** * Pretty print formatter rule to determine if a space should be added after the current token. * @param currentTokenType the token type of the current token * @param nextTokenType * @param previousTokenType * @returns True if a space should be added after the current token, false otherwise. */ export declare function prettyPrintRuleShouldAddSpaceBetween(currentTokenType: string, nextTokenType: string, previousTokenType: string): boolean; /** * This token increases the indentation level by 1 * @param token * @returns */ export declare function tokenIsIndentReason(token: Token): boolean; /** * This token decreases the indentation level by 1 * @param token * @returns */ export declare function tokenIsUnIndentReason(token: Token): boolean; /** * Geometry modifier functions are indentet by one extra space to make them more visible. * @param token * @returns */ export declare function tokenIsGeometryModifierFunction(token: Token): boolean; /** * wraps the String.repeat funciton in order not to get a negative input argument * @param indentLevel * @param indentString use string with spaces characters, do not use tab characters (breaks JSON) * @returns */ export declare function getIndentation(indentLevel: number, indentString: string): string; export declare const INDENT_SPACE_STRING = " "; export declare const LINEBREAK = "\n"; /** * removes the trailing newlines from the input string * @param input * @returns */ export declare function trimTrailingNewlines(input: string): string; /** * Removes all line breaks data from the tokens and return them in an unified manner. * @param tokens */ export declare function normalizeLineBreaksAfterTokens(tokens: Token[]): void;