import { Disposable, IDisposable } from "../../../../base/common/lifecycle.js"; import { DocumentPasteEdit } from "../../../common/languages.js"; /** Owns cached paste edits until they are disposed or transferred to another session. */ export declare class PasteEditSession extends Disposable { readonly edits: readonly T[]; private readonly _disposables; constructor(edits: readonly T[], disposables: IDisposable | undefined); /** Transfers the edits to a new owner. Disposing this session will no longer release them. */ take(): PasteEditSession; }