import type { Consumer, Mixin, Subscription } from '@rails/actioncable'; import { AnalyticsCollector } from '../analytics/collector'; declare type OnReceivedFn = (data: any) => void; export declare type ProfileSubscription = Subscription & Mixin & { connected: () => void; disconnected: () => void; received: OnReceivedFn; rejected: () => void; }; export declare function createProfileSubscription(client: Consumer, instance: AnalyticsCollector, onReceived: OnReceivedFn): ProfileSubscription; export {};