@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
18 lines (16 loc) • 915 B
text/typescript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Event } from '@sussudio/base/common/event.mjs';
import { IDisposable } from '@sussudio/base/common/lifecycle.mjs';
import { IProcessDataEvent } from './terminal.mjs';
export declare class TerminalDataBufferer implements IDisposable {
private readonly _callback;
private readonly _terminalBufferMap;
constructor(_callback: (id: number, data: string) => void);
dispose(): void;
startBuffering(id: number, event: Event<string | IProcessDataEvent>, throttleBy?: number): IDisposable;
stopBuffering(id: number): void;
flushBuffer(id: number): void;
}