/** * useTitleHistory * * Hook para mantener un historial circular de títulos del tooltip. * Sincroniza con la dirección de navegación (up/down) para determinar el índice actual. * * Features: * - Historial circular con límite máximo (default: 10 títulos) * - Sincronización con dirección de navegación * - Reset del historial * - Manejo de primera renderización * * @example * ```typescript * const { titles, currentIndex, addTitle } = useTitleHistory({ * maxHistory: 10 * }); * * // Al cambiar de item * addTitle('New Item', 'down'); * // titles = ['New Item'] * // currentIndex = 0 * ``` */ import type { TooltipDirection } from './useTooltipDirection'; export interface UseTitleHistoryOptions { /** Máximo número de títulos en historial (default: 10) */ maxHistory?: number; } export interface UseTitleHistoryReturn { /** Array de títulos en el historial */ titles: string[]; /** Índice actual en el historial */ currentIndex: number; /** Agregar nuevo título según dirección de navegación */ addTitle: (newTitle: string, direction: TooltipDirection) => void; /** Resetear historial */ reset: () => void; } export declare function useTitleHistory({ maxHistory }?: UseTitleHistoryOptions): UseTitleHistoryReturn; //# sourceMappingURL=useTitleHistory.d.ts.map