import { CaptureOptionsBySource, ToggleSource } from '@livekit/components-core'; import { TrackPublishOptions } from 'livekit-client'; import * as React from 'react'; /** @public */ export interface TrackToggleProps extends Omit, 'onChange'> { source: T; showIcon?: boolean; initialState?: boolean; /** * Function that is called when the enabled state of the toggle changes. * The second function argument `isUserInitiated` is `true` if the change was initiated by a user interaction, such as a click. */ onChange?: (enabled: boolean, isUserInitiated: boolean) => void; captureOptions?: CaptureOptionsBySource; publishOptions?: TrackPublishOptions; onDeviceError?: (error: Error) => void; } /** * With the `TrackToggle` component it is possible to mute and unmute your camera and microphone. * The component uses an html button element under the hood so you can treat it like a button. * * @example * ```tsx * * * * * ``` * @public */ export declare const TrackToggle: (props: TrackToggleProps & React.RefAttributes) => React.ReactNode; //# sourceMappingURL=TrackToggle.d.ts.map