UNPKG

@daily-co/daily-react

Version:

Daily React makes it easier to integrate [@daily-co/daily-js](https://www.npmjs.com/package/@daily-co/daily-js) in React applications.

15 lines (14 loc) 643 B
import { DailyCpuLoadStats, DailyEventObject } from '@daily-co/daily-js'; interface CPULoad { state: DailyCpuLoadStats['cpuLoadState']; reason: DailyCpuLoadStats['cpuLoadStateReason']; } interface Props { onCPULoadChange?(ev: DailyEventObject<'cpu-load-change'>): void; } /** * Returns the current CPU load as reported by daily-js [cpu-load-change](https://docs.daily.co/reference/daily-js/events/quality-events#cpu-load-change) events * and [getCpuLoadStats](https://docs.daily.co/reference/daily-js/instance-methods/get-cpu-load-stats). */ export declare const useCPULoad: ({ onCPULoadChange }?: Props) => CPULoad; export {};