import {
    Block,
    ClassElement,
    ClassLikeDeclaration,
    createSourceFile,
    FileTextChanges,
    find,
    findAncestor,
    findLast,
    flatten,
    forEach,
    formatting,
    getTokenAtPosition,
    isBlock,
    isClassElement,
    isClassLike,
    isForInOrOfStatement,
    isForStatement,
    isIfStatement,
    isInterfaceDeclaration,
    isLabeledStatement,
    isNamedDeclaration,
    isSourceFile,
    isTypeElement,
    isWhileStatement,
    LanguageServiceHost,
    Mutable,
    Node,
    NodeArray,
    or,
    some,
    SourceFile,
    Statement,
    SyntaxKind,
    textChanges,
    TextSpan,
    TypeElement,
    UserPreferences,
} from "./_namespaces/ts.js";
import { ChangeTracker } from "./textChanges.js";

/** @internal */
export function mapCode(
    sourceFile: SourceFile,
    contents: string[],
    focusLocations: TextSpan[][] | undefined,
    host: LanguageServiceHost,
    formatContext: formatting.FormatContext,
    preferences: UserPreferences,
): FileTextChanges[] {
