Houjie
2025-04-11 1bf977929dd324f3ac64b70debd8a79443c54392
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { BooleanCameraCapability } from "../../camera/core";
export type OnTorchActionFailureCallback = (failureMessage: string) => void;
interface TorchButtonController {
    disable(): void;
    enable(): void;
    setText(text: string): void;
}
export interface TorchButtonOptions {
    display: string;
    marginLeft: string;
}
export declare class TorchButton implements TorchButtonController {
    private readonly torchButton;
    private readonly onTorchActionFailureCallback;
    private torchController;
    private constructor();
    private render;
    updateTorchCapability(torchCapability: BooleanCameraCapability): void;
    getTorchButton(): HTMLButtonElement;
    hide(): void;
    show(): void;
    disable(): void;
    enable(): void;
    setText(text: string): void;
    reset(): void;
    static create(parentElement: HTMLElement, torchCapability: BooleanCameraCapability, torchButtonOptions: TorchButtonOptions, onTorchActionFailureCallback: OnTorchActionFailureCallback): TorchButton;
}
export {};