import * as React from "react"; import type { TamboThreadMessage } from "@tambo-ai/react"; /** * Custom hook to merge multiple refs into one callback ref * @param refs - Array of refs to merge * @returns A callback ref that updates all provided refs */ export declare function useMergedRef(...refs: React.Ref[]): (element: T) => void; /** * Custom hook to detect canvas space presence and position * @param elementRef - Reference to the component to compare position with * @returns Object containing hasCanvasSpace and canvasIsOnLeft */ export declare function useCanvasDetection(elementRef: React.RefObject): { hasCanvasSpace: boolean; canvasIsOnLeft: boolean; }; /** * Utility to check if a className string contains the "right" class * @param className - The className string to check * @returns true if the className contains "right", false otherwise */ export declare function hasRightClass(className?: string): boolean; /** * Hook to calculate sidebar and history positions based on className and canvas position * @param className - Component's className string * @param canvasIsOnLeft - Whether the canvas is on the left * @returns Object with isLeftPanel and historyPosition values */ export declare function usePositioning(className?: string, canvasIsOnLeft?: boolean, hasCanvasSpace?: boolean): { isLeftPanel: boolean; historyPosition: "left" | "right"; }; /** * Converts message content into a safely renderable format. * Primarily joins text blocks from arrays into a single string. * @param content - The message content (string, element, array, etc.) * @returns A renderable string or React element. */ export declare function getSafeContent(content: TamboThreadMessage["content"] | React.ReactNode | undefined | null): string | React.ReactElement; /** * Checks if message content contains meaningful, non-empty text. * @param content - The message content (string, element, array, etc.) * @returns True if there is content, false otherwise. */ export declare function checkHasContent(content: TamboThreadMessage["content"] | React.ReactNode | undefined | null): boolean; //# sourceMappingURL=thread-hooks.d.ts.map