import { PlayerConfig, RealPlayOptions, PlaybackOptions, PlayerStatus, PlayerError } from '../../../types';
import { Ref } from 'vue';
export declare function useDahuaPlayer(config: PlayerConfig, emit: (event: string, ...args: any[]) => void): {
    playerInstance: Ref<any, any>;
    status: Ref<PlayerStatus, PlayerStatus>;
    errorInfo: Ref<{
        code: string | number;
        message: string;
        type: "permission" | "connection" | "decode" | "timeout" | "unknown";
        raw?: any;
    } | null, PlayerError | {
        code: string | number;
        message: string;
        type: "permission" | "connection" | "decode" | "timeout" | "unknown";
        raw?: any;
    } | null>;
    initialize: () => Promise<void>;
    playReal: (options: RealPlayOptions) => Promise<void>;
    playRecord: (options: PlaybackOptions) => Promise<void>;
    stop: () => void;
    pause: () => void;
    resume: () => void;
    destroy: () => void;
    snapshot: () => string | null;
};
