UNPKG

helene

Version:
8 lines (7 loc) 355 B
export type UseEventParams = { event: string; channel?: string; active?: boolean; }; export declare function useLocalEvent({ event, channel }: UseEventParams, fn: (...args: any[]) => void, deps?: any[]): void; export declare function useRemoteEvent({ event, channel, active }: UseEventParams, fn: (...args: any[]) => void, deps?: any[]): any;