registry-demo/docs/util.d.ts

19 lines
906 B
TypeScript
Raw Permalink Normal View History

2022-02-24 20:10:01 +03:00
import QRCode from 'qrcode';
export declare function addClass(id: string, className: string): void;
export declare function removeClass(id: string, className: string): void;
export declare function hide(id: string): void;
export declare function show(id: string): void;
export declare function onClick(id: string, handler: (el: MouseEvent) => void): void;
export declare function setText(id: string, text: string): void;
export declare function getValue(id: string): any;
export declare function createQrCode(targetId: string, link: string, opts: QRCode.QRCodeRenderersOptions): Promise<void>;
export declare function disable(id: string): void;
export declare function enable(id: string): void;
export declare function link(id: string): string;
interface DiscoveredUser {
route: string;
userName: string;
}
export declare function updateUserList(users: DiscoveredUser[]): Promise<void>;
export {};