import type { IRange } from '@difizen/libro-code-editor'; import type { IOutput } from '@difizen/libro-common'; import type { KernelMessage, LibroCell, CellViewOptions } from '@difizen/libro-jupyter'; import { CellService, LibroEditableExecutableCellView, LibroOutputArea } from '@difizen/libro-jupyter'; import { ViewManager, Deferred, ConfigurationService } from '@difizen/mana-app'; import type { DefaultOptionType } from 'antd/es/select/index.js'; import React from 'react'; import { LibroPromptCellModel } from './prompt-cell-model.js'; import { PromptScript } from './prompt-cell-script.js'; import './index.less'; export interface ChatObject { name: string; type: string; order: number; key: string; disabled?: boolean; support_interpreter?: 'dynamic' | 'immutable' | 'disable'; interpreter_enabled?: boolean; [key: string]: any; } export interface ChatObjectOptions { order?: number; color?: string; } export declare const CellEditor: React.NamedExoticComponent<{}>; export declare class LibroPromptCellView extends LibroEditableExecutableCellView { view: React.ForwardRefExoticComponent>; model: LibroPromptCellModel; chatObjects: ChatObject[]; contextChatRecords: string[]; get interpreterEditMode(): boolean; set interpreterEditMode(data: boolean); handleInterpreterOutput: () => Promise; get sortedChatObjects(): ChatObject[]; get chatRecords(): string[]; viewManager: ViewManager; promptScript: PromptScript; outputs: IOutput[]; protected outputAreaDeferred: Deferred; get outputAreaReady(): Promise; constructor(options: CellViewOptions, cellService: CellService, configurationService: ConfigurationService, viewManager: ViewManager); outputWatch(): void; toJSON(): LibroCell; shouldEnterEditorMode(e: React.FocusEvent): boolean; blur: () => void; clearExecution: () => void; getSelections: () => []; getSelectionsOffsetAt: (selection: IRange) => { start: number; end: number; }; run(): Promise; runInterpreterCode(): Promise; fetch: (content: KernelMessage.IExecuteRequestMsg['content'], ioCallback: (msg: KernelMessage.IIOPubMessage) => any) => Promise; updateChatObjects: () => Promise; switchInterpreterMode: (chatKey: string, mode: boolean) => Promise; updateChatRecords: () => Promise; toSelectionOption: (item: ChatObject) => { value: string; label: import("react/jsx-runtime").JSX.Element; disabled: boolean; support_interpreter: "dynamic" | "immutable" | "disable" | undefined; }; handleQueryResponse: (response: KernelMessage.IIOPubMessage, cb: (result: string) => void) => void; checkVariableNameAvailable: (variableName?: string) => boolean; handleModelNameChange: (value: string, option?: DefaultOptionType) => void; handleVariableNameChange: (value?: string) => void; handleRecordChange: (value: string | undefined) => void; } //# sourceMappingURL=prompt-cell-view.d.ts.map