import { Observable } from 'rxjs'; import { ReactRequest, ReactResponse, GetCountsResponse, ReactionSet } from './types'; import * as i0 from "@angular/core"; /** * Servicio para gestionar reacciones emoji configurables por contexto. * * Requiere provideValtechReactions() en el bootstrap de la app. * * @example * const svc = inject(ReactionsService); * svc.react({ entityRef: { entityType: 'post', entityId: '1' }, token: 'heart', appId: 'app' }) * .subscribe(res => console.log(res.counts)); */ export declare class ReactionsService { private http; private config; constructor(); private get apiUrl(); private get baseUrl(); /** * Toggle reaccion — retorna estado nuevo + conteos actualizados. */ react(req: ReactRequest): Observable; /** * Conteos + reacciones del usuario para una entidad. */ getCounts(appId: string, entityType: string, entityId: string): Observable; /** * Solo mis tokens activos para una entidad. */ getMyReactions(appId: string, entityType: string, entityId: string): Observable; /** * Obtener un set de reacciones por ID. */ getSet(setId: string): Observable; /** * Listar todos los sets disponibles para una app. */ listSets(appId: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }