import { CharStream, ParserRuleContext, Token } from 'antlr4ts'; import { Position } from '..'; import { mapAst as ast } from '..'; /** * Type guard of DistanceStatementNode. * @param node Ast node or null | undefined. */ export declare const isDistanceStatementNode: (node: ast.MapAstNode | null | undefined) => node is ast.DistanceStatementNode; /** * Type guard of RootNode. * @param node Ast node or null | undefined. */ export declare const isRootNode: (node: ast.MapAstNode | null | undefined) => node is ast.RootNode; /** * Type guard of StatementNode. * @param node Ast node or null | undefined. */ export declare const isStatementNode: (node: ast.MapAstNode | null | undefined) => node is ast.StatementNode; /** * Get original text (string containing whitespace) of context. * @param ctx Antlr rule context. * @param input Antlr character stream. * @returns Original text (string containing whitespace) of context. */ export declare const getOriginalTextOfContext: (ctx: ParserRuleContext, input: CharStream) => string; /** * Get original text (string containing whitespace) of token. * @param token Antlr token. * @param input Antlr character stream. * @returns Original text (string containing whitespace) of token. */ export declare const getOriginalTextOfToken: (token: Token, input: CharStream) => string; /** * Get start position of context. * @param ctx Antlr rule context. * @returns Start position of context. */ export declare const getStartPosition: (ctx: ParserRuleContext) => Position; /** * Get end position of context. * If context end token is undefined, returns start position. * @param ctx Antlr rule context. * @returns End position of context. */ export declare const getEndPosition: (ctx: ParserRuleContext, input: CharStream) => Position; /** * Create ast node. * @param type Ast node type. * @param ctx Antlr rule context. * @param input Antlr character stream. * @param nodeValue Node-specific value. * @returns Created ast node. */ export declare const createMapAstNode: (type: ast.NodeType, ctx: ParserRuleContext, input: CharStream, nodeValue: Omit) => T;