import { Node } from "@babel/types"; import { FileRef, SourceReader, SourceWriter, DocumentEntity, TransformOptions, FileMappingOptions, Formatter } from "../types"; import { AstDocumentEntity } from "./ast-document"; import { SourceReplacement } from "../functions"; export declare class BabylonDocumentEntity extends AstDocumentEntity implements DocumentEntity { private _dirty; private _rawSource?; private _file?; reader: SourceReader; writer: SourceWriter; readonly fileMappingOptions: FileMappingOptions; constructor({ projectRoot, fileRef, fileMappingOptions, formatter, }: { projectRoot?: string; fileRef: FileRef; fileMappingOptions?: FileMappingOptions; formatter?: Formatter; }); readonly fileRef: FileRef; readonly isDirty: boolean; readonly sourceText: string | undefined; parse(): Promise; transformPreceding(to: string): this; transformFollowing({ from, to }: TransformOptions): this; getReplacements(): SourceReplacement[]; clear(): this; private _transformImports; }