import { FfmpegLivestreamProcess } from "homebridge-plugin-utils";
import type { ProtectCamera } from "./devices/index.js";
import type { ProtectLivestream } from "unifi-protect";
import type { RtspEntry } from "./devices/protect-camera.js";
export declare class LivestreamManager {
    private eventHandlers;
    private livestreams;
    private protectCamera;
    private restartDelay;
    private restarting;
    private subscriberCount;
    private segmentTimer;
    private startTime;
    constructor(protectCamera: ProtectCamera);
    private getIndex;
    acquire(rtspEntry: RtspEntry): FfmpegLivestreamProcess | ProtectLivestream;
    isRestarting(rtspEntry: RtspEntry): boolean;
    shutdown(): void;
    start(rtspEntry: RtspEntry, segmentLength?: number): Promise<boolean>;
    stop(rtspEntry: RtspEntry): void;
}
