import * as React from '@theia/core/shared/react'; import { CancellationTokenSource, Emitter, Event } from '@theia/core'; import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol'; import { TreeElement } from '@theia/core/lib/browser/source-tree'; import { DebugStackFrame } from './debug-stack-frame'; import { DebugSession } from '../debug-session'; import * as monaco from '@theia/monaco-editor-core'; import URI from '@theia/core/lib/common/uri'; export type StoppedDetails = DebugProtocol.StoppedEvent['body'] & { framesErrorMessage?: string; totalFrames?: number; }; export declare class DebugThreadData { readonly raw: DebugProtocol.Thread; readonly stoppedDetails: StoppedDetails | undefined; } export interface DebugExceptionInfo { id?: string; description?: string; details?: DebugProtocol.ExceptionDetails; } export declare class DebugThread extends DebugThreadData implements TreeElement { readonly session: DebugSession; protected readonly onDidChangedEmitter: Emitter; readonly onDidChanged: Event; protected readonly onDidFocusStackFrameEmitter: Emitter; get onDidFocusStackFrame(): Event; constructor(session: DebugSession); get id(): string; get threadId(): number; protected _currentFrame: DebugStackFrame | undefined; get currentFrame(): DebugStackFrame | undefined; set currentFrame(frame: DebugStackFrame | undefined); get stopped(): boolean; update(data: Partial): void; clear(): void; continue(): Promise; stepOver(): Promise; stepIn(): Promise; stepOut(): Promise; pause(): Promise; get supportsGoto(): boolean; jumpToCursor(uri: URI, position: monaco.Position): Promise; getExceptionInfo(): Promise; get supportsTerminate(): boolean; terminate(): Promise; protected readonly _frames: Map; get frames(): IterableIterator; get topFrame(): DebugStackFrame | undefined; get frameCount(): number; protected pendingFetch: Promise; protected _pendingFetchCount: number; protected pendingFetchCancel: CancellationTokenSource; fetchFrames(levels?: number): Promise; get pendingFrameCount(): number; protected doFetchFrames(startFrame: number, levels: number): Promise; protected doUpdateFrames(startFrame: number, frames: DebugProtocol.StackFrame[]): DebugStackFrame[]; protected clearFrames(): void; protected updateCurrentFrame(): void; protected toArgs(arg?: T): { threadId: number; } & T; render(): React.ReactNode; protected threadStatus(): string; protected getLocalizedReason(reason: string | undefined): string; } //# sourceMappingURL=debug-thread.d.ts.map