import * as React from '@theia/core/shared/react'; import { DebugProtocol } from '@vscode/debugprotocol/lib/debugProtocol'; import { ConsoleItem, CompositeConsoleItem } from '@theia/console/lib/browser/console-session'; import { DebugSession } from '../debug-session'; import { Severity } from '@theia/core/lib/common/severity'; import * as monaco from '@theia/monaco-editor-core'; export type DebugSessionProvider = () => DebugSession | undefined; export declare class ExpressionContainer implements CompositeConsoleItem { private static readonly BASE_CHUNK_SIZE; protected readonly sessionProvider: DebugSessionProvider; protected get session(): DebugSession | undefined; readonly id: string | number; protected variablesReference: number; protected namedVariables: number | undefined; protected indexedVariables: number | undefined; protected presentationHint: DebugProtocol.VariablePresentationHint | undefined; protected readonly startOfVariables: number; constructor(options: ExpressionContainer.Options); render(): React.ReactNode; get reference(): number | undefined; get hasElements(): boolean; get lazy(): boolean; resolveLazy(): Promise; protected handleResolvedLazy(resolved: DebugProtocol.Variable): void; protected elements: Promise | undefined; getElements(): Promise>; protected doResolve(): Promise; protected fetch(result: ConsoleItem[], filter: 'named'): Promise; protected fetch(result: ConsoleItem[], filter: 'indexed', start: number, count?: number): Promise; } export declare namespace ExpressionContainer { interface Options { session: DebugSessionProvider; id?: string | number; variablesReference?: number; namedVariables?: number; indexedVariables?: number; startOfVariables?: number; presentationHint?: DebugProtocol.VariablePresentationHint; } } export declare class DebugVariable extends ExpressionContainer { protected readonly variable: DebugProtocol.Variable; readonly parent: ExpressionContainer; static booleanRegex: RegExp; static stringRegex: RegExp; constructor(session: DebugSessionProvider, variable: DebugProtocol.Variable, parent: ExpressionContainer); get name(): string; get evaluateName(): string | undefined; protected _type: string | undefined; get type(): string | undefined; protected _value: string | undefined; get value(): string; get readOnly(): boolean; render(): React.ReactNode; private readonly handleLazyButtonClick; protected get variableClassName(): string; protected handleResolvedLazy(resolved: DebugProtocol.Variable): void; get supportSetVariable(): boolean; setValue(value: string): Promise; get supportCopyValue(): boolean; copyValue(): void; protected valueRef: HTMLSpanElement | undefined; protected setValueRef: (valueRef: HTMLSpanElement | null) => HTMLSpanElement | undefined; get supportCopyAsExpression(): boolean; copyAsExpression(): void; protected nameRef: HTMLSpanElement | undefined; protected setNameRef: (nameRef: HTMLSpanElement | null) => HTMLSpanElement | undefined; open(): Promise; } export declare class DebugVirtualVariable extends ExpressionContainer { protected readonly options: VirtualVariableItem.Options; constructor(options: VirtualVariableItem.Options); render(): React.ReactNode; } export declare namespace VirtualVariableItem { interface Options extends ExpressionContainer.Options { name: string; } } export declare class ExpressionItem extends ExpressionContainer { protected _expression: string; severity?: Severity; static notAvailable: string; protected _value: string; get value(): string; protected _type: string | undefined; get type(): string | undefined; protected _available: boolean; get available(): boolean; constructor(_expression: string, session: DebugSessionProvider, id?: string | number); get expression(): string; render(): React.ReactNode; evaluate(context?: string, resolveLazy?: boolean): Promise; protected setResult(body?: DebugProtocol.EvaluateResponse['body'], error?: string): void; protected handleResolvedLazy(resolved: DebugProtocol.Variable): void; } export declare class DebugScope extends ExpressionContainer { protected readonly raw: DebugProtocol.Scope; constructor(raw: DebugProtocol.Scope, session: DebugSessionProvider, id: number); render(): React.ReactNode; get expensive(): boolean; get range(): monaco.Range | undefined; get name(): string; expandByDefault(): boolean; } //# sourceMappingURL=debug-console-items.d.ts.map