interface SceneValueData {
    t: number;
    f: number;
    m: number;
    h: number;
    s: number;
    v: number;
    b: number;
    k: number;
}
export declare const musicEnabled: () => void;
export declare const musicDisabled: () => void;
export declare const isSendMusicEnabled: () => boolean;
declare class Parser {
    format(value: string, len?: number): string;
    /**
     * @desc 将10进制的hsv转换成16进制的hhsssvvvv
     * 范围为h(0-360) s(0-1000) v(0-1000)
     * @param {Array} hsvArr - [h, s, v]
     *
     * @return {String} 'hhhhssssvvvv'
     *
     */
    encodeColorData(h: number, s: number, v: number): string;
    encodeSceneData(scenes: SceneValueData[], sceneNum: number): string;
    encodeControlData(m: number, h: number, s: number, v: number, b: number, k: number): string;
    /**
     * @desc 将16进制的hhsssvvv转换成10进制的hsv
     * 范围为h(0-360) s(0-1000) v(0-1000)
     * @param {String} hsvStr - encoded hsvStr (hhhhssssvvvv)
     *
     * @return {Array} [h, s, v]
     *
     */
    decodeColorData(byte: string): number[];
    decodeSceneData(byte: string): {
        sceneNum: number;
        scenes: {
            t: number;
            f: number;
            m: number;
            h: number;
            s: number;
            v: number;
            b: number;
            k: number;
        }[];
    };
    bright2Opacity(brightness: number, option?: {
        min: number;
        max: number;
    }): number;
    /**
     * 格式化hsv
     * 亮度将转化为透明度变化
     */
    hsv2rgba(hue: number, saturation: number, bright: number): string;
    brightKelvin2rgba(bright: number, kelvin: number): string;
}
export declare const ColorParser: Parser;
export declare const calcPercent: (start: number, end: number, pos: number, min?: number) => number;
export declare const calcPosition: (start: number, end: number, percent: number) => number;
export declare const randomHsb: () => number[];
export declare const arrayToObject: (arr: any[]) => any;
export declare const isCapability: (id: number) => boolean;
export {};
