UNPKG

@n8n/n8n-nodes-langchain

Version:
23 lines (22 loc) 1.17 kB
import type { AuthenticationChatOption, ChatFrameIdentity, LoadPreviousSessionChatOption } from './types'; export declare function escapeForScriptContext(value: string | object): string; export declare function getSanitizedInitialMessages(initialMessages: string): string[]; export declare function getSanitizedI18nConfig(config: Record<string, string>): Record<string, string>; export declare function getSanitizedCustomCss(customCss: string): string; export declare function createPage({ instanceId, webhookUrl, showWelcomeScreen, loadPreviousSession, i18n: { en }, initialMessages, authentication, allowFileUploads, allowedFilesMimeTypes, customCss, enableStreaming, frameIdentity, }: { instanceId: string; webhookUrl?: string; showWelcomeScreen?: boolean; loadPreviousSession?: LoadPreviousSessionChatOption; i18n: { en: Record<string, string>; }; initialMessages: string; mode: 'test' | 'production'; authentication: AuthenticationChatOption; allowFileUploads?: boolean; allowedFilesMimeTypes?: string; customCss?: string; enableStreaming?: boolean; frameIdentity?: ChatFrameIdentity; }): string;