import { ParsingContext } from '../types'; import { LintConfig } from '../types/Config'; import { GetFormattedString } from '../types/Formattable'; import { BracketSpacingConfig, SepSpacingConfig } from '../types/StylisticConfig'; import { TextRange } from '../types/TextRange'; import { ArgumentNode, DiagnosticMap, GetCodeActions, GetHover, GetPlainKeys, NodeType } from './ArgumentNode'; export declare const enum BracketType { open = 0, close = 1 } export declare type ShouldInsertSpacesPredicate = (lint: LintConfig, data?: any) => boolean; export declare const IsMapSorted: unique symbol; export declare const ConfigKeys: unique symbol; export declare const Chars: unique symbol; export declare const Keys: unique symbol; export declare const UnsortedKeys: unique symbol; export declare const GetFormattedOpen: unique symbol; export declare const GetFormattedClose: unique symbol; export declare abstract class MapNode extends ArgumentNode { [key: string]: V; readonly [NodeType]: string; readonly [Keys]: { [key: string]: KI; }; readonly [UnsortedKeys]: string[]; protected abstract [ConfigKeys]: { bracketSpacing: keyof LintConfig; pairSepSpacing: keyof LintConfig; sepSpacing: keyof LintConfig; trailingPairSep: keyof LintConfig; }; protected abstract [Chars]: { closeBracket: string; openBracket: string; pairSep: string; sep: string; }; static getBracketSpacingAmount(length: number, config: BracketSpacingConfig): number; static getFormattedBracket(length: number, char: string, type: BracketType, config: BracketSpacingConfig): string; static getFormattedSep(char: string, config: SepSpacingConfig, trimmingEnd?: boolean): string; [GetPlainKeys](): string[]; [IsMapSorted](..._params: any[]): boolean; [GetFormattedOpen](lint: LintConfig): string; [GetFormattedClose](lint: LintConfig): string; [GetFormattedString](lint: LintConfig, keys?: string[], kvPair?: (lint: LintConfig, key: string, sep: string, value: V) => string): string; [GetCodeActions](uri: string, ctx: ParsingContext, range: TextRange, diagnostics: DiagnosticMap): import("vscode-languageserver-types").CodeAction[]; [GetHover](ctx: ParsingContext): import("vscode-languageserver-types").Hover | null; }