import { SSEManager } from '../services/sse';
export interface BadgeCountPayload {
    count: number;
}
/**
 * Connect badge elements to SSE events via a shared SSEManager.
 *
 * @param sse - Shared SSEManager instance (already connected or will be connected).
 * @param mapping - Maps badge data attribute IDs to SSE event type names.
 *                  e.g. { 'unread-messages': 'notifications:messages' }
 *                  Badge elements are found via [data-badge="<id>"].
 * @returns Cleanup function that unsubscribes all handlers.
 */
export declare function connectBadges(sse: SSEManager, mapping: Record<string, string>): () => void;
/**
 * Manually update a badge count (for non-SSE updates like after an API call).
 */
export declare function updateBadge(badgeId: string, count: number): void;
//# sourceMappingURL=badge.d.ts.map