import { Participant } from 'livekit-client';
import { ParticipantClickEvent, TrackReferenceOrPlaceholder } from '@livekit/components-core';
import * as React from 'react';
/**
* The `ParticipantContextIfNeeded` component only creates a `ParticipantContext`
* if there is no `ParticipantContext` already.
* @example
* ```tsx
*
* ...
*
* ```
* @public
*/
export declare function ParticipantContextIfNeeded(props: React.PropsWithChildren<{
participant?: Participant;
}>): React.JSX.Element;
/**
* Only create a `TrackRefContext` if there is no `TrackRefContext` already.
* @internal
*/
export declare function TrackRefContextIfNeeded(props: React.PropsWithChildren<{
trackRef?: TrackReferenceOrPlaceholder;
}>): React.JSX.Element;
/** @public */
export interface ParticipantTileProps extends React.HTMLAttributes {
/** The track reference to display. */
trackRef?: TrackReferenceOrPlaceholder;
disableSpeakingIndicator?: boolean;
onParticipantClick?: (event: ParticipantClickEvent) => void;
}
/**
* The `ParticipantTile` component is the base utility wrapper for displaying a visual representation of a participant.
* This component can be used as a child of the `TrackLoop` component or by passing a track reference as property.
*
* @example Using the `ParticipantTile` component with a track reference:
* ```tsx
*
* ```
* @example Using the `ParticipantTile` component as a child of the `TrackLoop` component:
* ```tsx
*
*
*
* ```
* @public
*/
export declare const ParticipantTile: (props: ParticipantTileProps & React.RefAttributes) => React.ReactNode;
//# sourceMappingURL=ParticipantTile.d.ts.map