@livekit/components-core
Version:
17 lines • 819 B
TypeScript
import type { Participant, TrackPublication } from 'livekit-client';
import type { TrackReference } from './track-reference';
import type { PinState } from './types';
export declare function isLocal(p: Participant): boolean;
export declare function isRemote(p: Participant): boolean;
export declare const attachIfSubscribed: (publication: TrackPublication | undefined, element: HTMLMediaElement | null | undefined) => void;
/**
* Check if the participant track reference is pinned.
*/
export declare function isParticipantTrackReferencePinned(trackRef: TrackReference, pinState: PinState | undefined): boolean;
/**
* Calculates the scrollbar width by creating two HTML elements
* and messaging the difference.
* @internal
*/
export declare function getScrollBarWidth(): number;
//# sourceMappingURL=utils.d.ts.map