import type { SvelteVirtualChatProps, SvelteVirtualChatDebugInfo } from './types.js'; declare function $$render(): { props: SvelteVirtualChatProps; exports: { /** * Scroll the viewport to the bottom. * * @param options - Optional configuration * @param options.smooth - Use smooth scrolling animation (default: false) * * @example * ```ts * chat.scrollToBottom() * chat.scrollToBottom({ smooth: true }) * ``` */ scrollToBottom: (options?: { smooth?: boolean; }) => void; /** * Scroll to a specific message by its ID. * * If the message ID is not found in the messages array, this is a no-op. * * @param id - The message ID as returned by `getMessageId` * @param options - Optional configuration * @param options.smooth - Use smooth scrolling animation (default: false) * * @example * ```ts * chat.scrollToMessage('msg-42') * chat.scrollToMessage('msg-42', { smooth: true }) * ``` */ scrollToMessage: (id: string, options?: { smooth?: boolean; }) => void; /** * Check if the viewport is currently following bottom. * * Returns `true` when the viewport is within `followBottomThresholdPx` * of the bottom, meaning new messages will auto-scroll into view. * * @returns Whether the viewport is pinned to the bottom * * @example * ```ts * if (chat.isAtBottom()) { * // User sees the latest message * } * ``` */ isAtBottom: () => boolean; /** * Get a snapshot of the current internal state. * * Returns debug information including total messages, rendered DOM count, * measured heights, visible range, scroll position, and follow state. * * @returns Current debug info snapshot * * @example * ```ts * const info = chat.getDebugInfo() * console.log(`${info.renderedCount}/${info.totalMessages} in DOM`) * ``` */ getDebugInfo: () => SvelteVirtualChatDebugInfo; }; bindings: ""; slots: {}; events: {}; }; declare class __sveltets_Render { props(): ReturnType>['props']; events(): ReturnType>['events']; slots(): ReturnType>['slots']; bindings(): ""; exports(): { /** * Scroll the viewport to the bottom. * * @param options - Optional configuration * @param options.smooth - Use smooth scrolling animation (default: false) * * @example * ```ts * chat.scrollToBottom() * chat.scrollToBottom({ smooth: true }) * ``` */ scrollToBottom: (options?: { smooth?: boolean; } | undefined) => void; /** * Scroll to a specific message by its ID. * * If the message ID is not found in the messages array, this is a no-op. * * @param id - The message ID as returned by `getMessageId` * @param options - Optional configuration * @param options.smooth - Use smooth scrolling animation (default: false) * * @example * ```ts * chat.scrollToMessage('msg-42') * chat.scrollToMessage('msg-42', { smooth: true }) * ``` */ scrollToMessage: (id: string, options?: { smooth?: boolean; } | undefined) => void; /** * Check if the viewport is currently following bottom. * * Returns `true` when the viewport is within `followBottomThresholdPx` * of the bottom, meaning new messages will auto-scroll into view. * * @returns Whether the viewport is pinned to the bottom * * @example * ```ts * if (chat.isAtBottom()) { * // User sees the latest message * } * ``` */ isAtBottom: () => boolean; /** * Get a snapshot of the current internal state. * * Returns debug information including total messages, rendered DOM count, * measured heights, visible range, scroll position, and follow state. * * @returns Current debug info snapshot * * @example * ```ts * const info = chat.getDebugInfo() * console.log(`${info.renderedCount}/${info.totalMessages} in DOM`) * ``` */ getDebugInfo: () => SvelteVirtualChatDebugInfo; }; } interface $$IsomorphicComponent { new (options: import('svelte').ComponentConstructorOptions['props']>>): import('svelte').SvelteComponent['props']>, ReturnType<__sveltets_Render['events']>, ReturnType<__sveltets_Render['slots']>> & { $$bindings?: ReturnType<__sveltets_Render['bindings']>; } & ReturnType<__sveltets_Render['exports']>; (internal: unknown, props: ReturnType<__sveltets_Render['props']> & {}): ReturnType<__sveltets_Render['exports']>; z_$$bindings?: ReturnType<__sveltets_Render['bindings']>; } declare const SvelteVirtualChat: $$IsomorphicComponent; type SvelteVirtualChat = InstanceType>; export default SvelteVirtualChat;