import { IdentityNode } from '../nodes/IdentityNode'; import { ArgumentParserResult } from '../types/Parser'; import { ParsingContext } from '../types/ParsingContext'; import { StringReader } from '../utils/StringReader'; import { ArgumentParser } from './ArgumentParser'; export declare class IdentityArgumentParser extends ArgumentParser { private readonly type; private readonly allowTag; private readonly isPredicate; private readonly allowUnknown; private readonly isDefinition; private readonly requireTag; static identity: string; readonly identity = "identity"; /** * @param type A type in the registry, or a type in cache if beginning with the dollar sign (`$`). * Alternatively, an array with all possible values. */ constructor(type: string | string[], allowTag?: boolean, isPredicate?: boolean, allowUnknown?: boolean, isDefinition?: boolean, requireTag?: boolean); parse(reader: StringReader, ctx: ParsingContext): ArgumentParserResult; private parseData; private addEmptyError; private addDefinitionCache; private applyCompletions; private checkIfIdExist; /** * @returns The range of the selected path. */ private completeBeginning; /** * @returns The range of the selected path. */ private parseNamespaceAndFirstPath; /** * @returns The range of the selected path. */ private parseRemaningPaths; private completeBeginningFromCurrentPool; private completeBeginningFromTagPoolIfApplicable; private setUpCompletion; private shouldCheck; private shouldStrictCheck; private getVanillaPool; /** * Read an unquoted string and add errors if it contains non [a-z0-9/._-] character. */ private readValidString; /** * Add the first element of the `paths` to `complFolders` or `complFiles`, accordingly. * @param comlPaths The paths of the ID completion. * @param complFolders Ans completion folders. * @param complFiles Ans completion files. */ private completeFolderOrFile; /** * Check if a parsed ID is valid in the specific cache unit. * @param type The type of the cache unit. * @param stringID The stringified ID. * @param start The start of the whole parsing process of this ID. */ private checkIDInCache; getExamples(): string[]; }