import type { ASTNode, Location } from 'graphql'; import { MessageLocation } from '../validation/location.js'; import { QuickFix } from '../validation/quick-fix.js'; /** * Offers to replace a name that does not exist with the existing names that are similar to it * * @param node the name, or a string value containing the name */ export declare function getUseSimilarNameQuickFixes(node: ASTNode | undefined, name: string, existingNames: Iterable): ReadonlyArray; /** * Offers to replace the text at the given location with the existing names that are similar to the * given name * * @param format converts a suggested name into the replacement text (e.g. to quote it) */ export declare function getReplaceWithSimilarNameQuickFixes(location: MessageLocation | Location | undefined, name: string, existingNames: Iterable, format?: (suggestion: string) => string): ReadonlyArray; /** * Offers to replace a JSON or YAML value with the existing names that are similar to it * * @param location the location of the value, as found in the pathLocationMap of a parsed source * @param key the property name if the value is a property of an object */ export declare function getReplaceValueWithSimilarNameQuickFixes(location: MessageLocation | undefined, key: string | undefined, name: string, existingNames: Iterable): ReadonlyArray;