export declare class QNRTCError extends Error { code: number; error: string; constructor(code: number, message: string); } export declare const UNEXPECTED_ERROR: (msg: string) => QNRTCError; export declare const AUTH_ENTER_ROOM_ERROR: (msg: string) => QNRTCError; export declare const SIGNAL_ENTER_ROOM_ERROR: (msg: string) => QNRTCError; export declare const PUBLISH_ERROR: (code: number, msg: string) => QNRTCError; export declare const CREATE_MERGE_JOB_ERROR: (code: number, msg: string) => QNRTCError; export declare const PUBLISH_ICE_ERROR: () => QNRTCError; export declare const SUB_ICE_ERROR: () => QNRTCError; export declare const SUB_ERROR_NO_STREAM: (userId: string) => QNRTCError; export declare const SUB_P2P_ERROR: (msg: string) => QNRTCError; export declare const PUB_P2P_ERROR: (msg: string) => QNRTCError; export declare const UNSUPPORT_FMT: (msg: string) => QNRTCError; export declare const JOIN_ROOM_ERROR: (code: number, msg: string) => QNRTCError; export declare const SUB_ERROR: (code: number, msg: string) => QNRTCError; export declare const UNPUBLISH_ERROR: (code: number, msg: string) => QNRTCError; export declare const UNSUB_ERROR: (code: number, msg: string) => QNRTCError; export declare const CONTROL_ERROR: (code: number, msg: string) => QNRTCError; export declare const NOT_SUPPORT_ERROR: (msg: string) => QNRTCError; export declare const SERVER_ERROR: (code: number, msg: string) => QNRTCError; export declare const SERVER_UNAVAILABLE: () => QNRTCError; export declare const PLUGIN_NOT_AVALIABLE: (msg: string) => QNRTCError; export declare const DEVICE_NOT_ALLOWED: (msg: string) => QNRTCError; export declare const SUB_ERROR_NO_USER: (userId: string) => QNRTCError; export declare const NO_MERGE_JOB: (id: string) => QNRTCError; export declare const SCREEN_PERMISSION_DENIED: () => QNRTCError; export declare const SUB_PUB_ABORT: () => QNRTCError; export declare const AUDIO_DECODE_ERROR: (e: Error) => QNRTCError; export declare const PLAY_NOT_ALLOWED: (msg: string) => QNRTCError; export declare const AUTO_SWITCH_ERROR: (msg: string) => QNRTCError; export declare const WS_ABORT: () => QNRTCError; /** * Error produced when calling a method in an invalid state. */ export declare class InvalidStateError extends Error { constructor(message: string); }