/** * @license * Copyright 2023 Nuraly, Laabidi Aymen * SPDX-License-Identifier: MIT */ import { ReactiveController, ReactiveControllerHost } from 'lit'; import { ChatbotMessage } from '../chatbot.types.js'; /** * Interface for chatbot scroll controller host */ export interface ChatbotScrollControllerHost extends ReactiveControllerHost { messages: ChatbotMessage[]; autoScroll: boolean; shadowRoot: ShadowRoot | null; } /** * Controller for managing chatbot scroll behavior * Handles scrolling when new messages are added or updated */ export declare class ChatbotScrollController implements ReactiveController { private host; constructor(host: ChatbotScrollControllerHost); hostConnected(): void; hostDisconnected(): void; /** * Handle messages update and scroll to bottom */ handleMessagesUpdate(): void; /** * Scroll to bottom of messages container */ scrollToBottom(): void; } //# sourceMappingURL=scroll.controller.d.ts.map