import React, { Component, type RefObject } from 'react'; import { type ContextAction } from '@deephaven/components'; import { CommandHistory, type CommandHistoryStorage, type CommandHistorySettings, type CommandHistoryTable } from '@deephaven/console'; import { type DashboardPanelProps } from '@deephaven/dashboard'; import { Pending } from '@deephaven/utils'; import type { dh } from '@deephaven/jsapi-types'; import { type CoreConsoleSession } from '../ConsoleEvents'; import './CommandHistoryPanel.scss'; interface CommandHistoryPanelProps extends DashboardPanelProps { panelState?: Record; session?: dh.IdeSession; sessionId?: string; language?: string; commandHistoryStorage: CommandHistoryStorage; } interface CommandHistoryPanelState { panelState: Record; session?: dh.IdeSession; sessionId?: string; language?: string; contextActions: ContextAction[]; table?: CommandHistoryTable; } declare class CommandHistoryPanel extends Component { static COMPONENT: string; static TITLE: string; static handleError(error: unknown): void; constructor(props: CommandHistoryPanelProps); componentDidMount(): void; componentWillUnmount(): void; container: RefObject; pending: Pending; handleFocusHistory(): void; handleShow(): void; handleSessionOpened({ session, language, sessionId, }: CoreConsoleSession): void; handleSessionClosed(): void; handleSendToNotebook(settings: CommandHistorySettings, forceNewNotebook?: boolean): void; handleSendToConsole(command: string, focus?: boolean, execute?: boolean): void; loadTable(): void; render(): JSX.Element; } declare const ConnectedCommandHistoryPanel: import("react-redux").ConnectedComponent & CommandHistoryPanelProps, "language" | "session" | "sessionId" | "commandHistoryStorage"> & { localDashboardId: string; }>; export default ConnectedCommandHistoryPanel; //# sourceMappingURL=CommandHistoryPanel.d.ts.map