export interface GroovySyntaxError { message: string; line: number; column: number; } type TokenKind = 'name' | 'literal' | 'operator' | 'open' | 'close' | 'comma' | 'semicolon'; export interface Token { kind: TokenKind; text: string; offset: number; } export declare function groovyTokens(criteria: string): Token[] | undefined; export declare function groovySyntaxError(criteria: string): GroovySyntaxError | undefined; export type GroovyVerdict = { kind: 'valid'; } | { kind: 'refused'; error: GroovySyntaxError; } | { kind: 'unknown'; }; export declare function checkGroovySyntax(criteria: string): GroovyVerdict; export declare function groovyCompileErrorText(criteria: string, error: GroovySyntaxError, { ownLine }?: { ownLine?: boolean; }): string; export {};