import React, { Component } from 'react'; import PropTypes from 'prop-types'; import type { Shell as ShellType } from '@mongosh/browser-repl'; import type { WorkerRuntime } from '@mongosh/node-runtime-worker-thread'; import type { HistoryStorage } from '../../modules/history-storage'; export interface CompassShellProps { emitShellPluginOpened?: () => void; runtime: WorkerRuntime | null; shellOutput?: ShellOutputEntry[]; historyStorage?: HistoryStorage; enableShell: boolean; } interface CompassShellState { height: number; prevHeight: number; initialHistory: string[] | null; isOperationInProgress: boolean; showInfoModal: boolean; } type ShellOutputEntry = ShellType['state']['output'][number]; export declare class CompassShell extends Component { static propTypes: { emitShellPluginOpened: PropTypes.Requireable<(...args: any[]) => any>; runtime: PropTypes.Requireable; shellOutput: PropTypes.Requireable; historyStorage: PropTypes.Requireable; enableShell: PropTypes.Requireable; }; shellRef: React.RefObject; shellOutput: readonly ShellOutputEntry[]; static defaultProps: { emitShellPluginOpened: () => void; runtime: null; }; constructor(props: CompassShellProps); componentDidMount(): void; componentDidUpdate(prevProps: CompassShellProps, prevState: CompassShellState): void; componentWillUnmount(): void; onShellOutputChanged: (output: readonly ShellOutputEntry[]) => void; onOperationStarted: () => void; onOperationEnd: () => void; terminateRuntime: () => void; saveHistory: (history: readonly string[]) => void; loadHistory: () => Promise; updateHeight(height: number): void; hideInfoModal(): void; focusEditor(): void; render(): JSX.Element; } declare const _default: import("react-redux").ConnectedComponent & Partial>>, { enableShell?: boolean | undefined; shellOutput?: import("@mongosh/browser-repl/lib/components/shell-output-line").ShellOutputEntry[] | undefined; historyStorage?: HistoryStorage | undefined; context?: React.Context> | undefined; store?: import("redux").Store | undefined; }>; export default _default; //# sourceMappingURL=compass-shell.d.ts.map