@n8n/n8n-nodes-langchain
Version:

21 lines (20 loc) • 1.01 kB
TypeScript
import type { AuthenticationChatOption, LoadPreviousSessionChatOption } from './types';
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, }: {
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;
}): string;