import { Store } from './store';
import { AnalyticsTimer } from '../analytics/AnalyticsTimer';
import { DeviceManager } from '../device-manager';
import { HMSGetMediaActions } from '../error/utils';
import { EventBus } from '../events/EventBus';
import { HMSScreenShareConfig, ScreenCaptureHandleConfig } from '../interfaces';
import InitialSettings from '../interfaces/settings';
import { HMSLocalTrack, HMSLocalVideoTrack } from '../internal';
import { HMSTrackSettings } from '../media/settings';
import { HMSLocalStream } from '../media/streams/HMSLocalStream';
import ITransportObserver from '../transport/ITransportObserver';
declare type IFetchTrackOptions = boolean | 'empty';
interface IFetchAVTrackOptions {
    audio: IFetchTrackOptions;
    video: IFetchTrackOptions;
}
export declare class LocalTrackManager {
    private store;
    private observer;
    private deviceManager;
    private eventBus;
    private analyticsTimer;
    readonly TAG: string;
    private captureHandleIdentifier?;
    constructor(store: Store, observer: ITransportObserver, deviceManager: DeviceManager, eventBus: EventBus, analyticsTimer: AnalyticsTimer);
    getTracksToPublish(initialSettings?: InitialSettings): Promise<HMSLocalTrack[]>;
    /**
     * @throws {HMSException}
     */
    getLocalTracks(fetchTrackOptions: IFetchAVTrackOptions | undefined, settings: HMSTrackSettings, localStream?: HMSLocalStream): Promise<Array<HMSLocalTrack>>;
    /**
     * @throws {HMSException}
     */
    private getNativeLocalTracks;
    private optimizeScreenShareConstraint;
    getLocalScreen(partialConfig?: HMSScreenShareConfig, optimise?: boolean): Promise<HMSLocalTrack[]>;
    setScreenCaptureHandleConfig(config?: Partial<ScreenCaptureHandleConfig>): void;
    validateCurrentTabCapture(track: HMSLocalVideoTrack, forceCurrentTab: boolean): boolean;
    requestPermissions(): Promise<void>;
    static getEmptyVideoTrack(prevTrack?: MediaStreamTrack): MediaStreamTrack;
    static getEmptyAudioTrack(): MediaStreamTrack;
    static cleanup(): void;
    /**
     * @throws {HMSException}
     */
    private getAVTracks;
    private getAVTrackSettings;
    private isInIframe;
    private retryGetLocalTracks;
    getErrorType(videoError: boolean, audioError: boolean): HMSGetMediaActions;
    private getEmptyTracks;
    private updateCurrentLocalTrackSettings;
    private getAudioSettings;
    private getVideoSettings;
    private getScreenshareSettings;
    private getOrDefaultScreenshareConfig;
    private createHMSLocalTracks;
}
export {};
