import { FunctionComponent } from 'react'; import { PlaygroundEditorsOptions } from '../playground.js'; import { CompilationState, FileOutputViewer, ProgramViewer } from '../types.js'; export interface OutputViewProps { compilationState: CompilationState | undefined; isCompiling?: boolean; /** When true, the displayed output is from a previous successful compilation. */ isOutputStale?: boolean; editorOptions?: PlaygroundEditorsOptions; /** * List of custom viewers to display the output. It can be file viewers or program viewers. */ viewers?: ProgramViewer[]; fileViewers?: FileOutputViewer[]; /** * The currently selected viewer key. */ selectedViewer?: string; /** * Callback when the selected viewer changes. */ onViewerChange?: (viewerKey: string) => void; /** * Current viewer state for viewers that have internal state. */ viewerState?: Record; /** * Callback when viewer state changes. */ onViewerStateChange?: (state: Record) => void; } export declare const OutputView: FunctionComponent; //# sourceMappingURL=output-view.d.ts.map