/******************************************************************************************
 * Repository: https://github.com/kolserdav/werift-sfu-react.git
 * File name: lib.ts
 * Author: Sergey Kolmiller
 * Email: <uyem.ru@gmail.com>
 * License: MIT
 * License text: See in LICENSE file
 * Copyright: kolserdav, All rights reserved (c)
 * Create Date: Wed Aug 24 2022 14:14:09 GMT+0700 (Krasnoyarsk Standard Time)
 ******************************************************************************************/
import werift from 'werift';
import { LocaleServer, LocaleValue } from '../types/interfaces';
declare enum LogLevel {
    log = 0,
    info = 1,
    warn = 2,
    error = 3
}
export declare const log: (type: keyof typeof LogLevel, text: string, _data?: any, cons?: boolean) => void;
export declare const setLogLevel: (_logLevel: LogLevel | undefined) => void;
export declare const getLocale: (value: LocaleValue) => LocaleServer;
export declare const checkSignallingState: (signallingState: werift.RTCPeerConnection['signalingState']) => boolean;
export declare const checkTockenDefault: (token: string) => Promise<boolean>;
export declare const cleanDbUrl: (db?: string) => string;
export declare const createRandHash: (length: number) => string;
export declare const parseQueryString: (query: string) => Record<string, string>;
export declare const getVideoPath: ({ cloudPath, roomId, name, }: {
    cloudPath: string;
    roomId: string | number;
    name: string;
}) => string;
export declare const getVideosDirPath: ({ cloudPath }: {
    cloudPath: string;
}) => string;
export declare const getBackgroundsDirPath: ({ cloudPath }: {
    cloudPath: string;
}) => string;
export declare const getRoomDirPath: ({ videosDirPath, roomId, }: {
    videosDirPath: string;
    roomId: string | number;
}) => string;
export declare const checkDefaultAuth: ({ unitId }: {
    unitId: string;
}) => boolean;
export {};
//# sourceMappingURL=lib.d.ts.map