import * as ts from "typescript"; interface ICancellationTokenData { isCancelled: boolean; cancellationFileName: string; } export declare class CancellationToken { private typescript; static createFromJSON(typescript: typeof ts, json: ICancellationTokenData): CancellationToken; private isCancelled; private cancellationFileName; private lastCancellationCheckTime; constructor(typescript: typeof ts, cancellationFileName?: string, isCancelled?: boolean); toJSON(): { cancellationFileName: string; isCancelled: boolean; }; getCancellationFilePath(): string; isCancellationRequested(): boolean; throwIfCancellationRequested(): void; requestCancellation(): void; cleanupCancellation(): void; } export {};