remix-nlux
Version:
Remix IDE NLUX integration. Remix IDE is the leading IDE for building and deploying smart contracts on Ethereum. NLUX is a JavaScript and React library for building conversational AI experiences.
29 lines (25 loc) • 888 B
text/typescript
import {SanitizerExtension} from '@shared/sanitizer/sanitizer';
import {HighlighterExtension, IObserver} from '../../../../js/core/src';
export type StreamParser = (
root: HTMLElement,
syntaxHighlighter?: HighlighterExtension,
) => IObserver<string>;
export type StandardStreamParserOutput = {
next(value: string): void;
complete(): void;
cancel(): void;
error(error: Error): void;
};
export type StandardStreamParser = (
root: HTMLElement,
options?: {
syntaxHighlighter?: HighlighterExtension,
htmlSanitizer?: SanitizerExtension,
markdownLinkTarget?: 'blank' | 'self';
showCodeBlockCopyButton?: boolean;
skipStreamingAnimation?: boolean;
streamingAnimationSpeed?: number;
waitTimeBeforeStreamCompletion?: number | 'never';
onComplete?: () => void;
},
) => StandardStreamParserOutput;