PEE/main.d.ts
2022-01-29 21:01:45 +01:00

24 lines
640 B
TypeScript

declare module '*.css' {
export default string;
}
declare module '*.png' {
export default new Uint8Array;
}
declare module 'blockhash' {
export const hammingDistance: (a: string, b: string) => number;
export const blockhash: () => void;
export const blockhashData: (imgData: {
width: number,
height: number,
data: Uint8Array
}, bits: number, method: number) => string;
}
declare const QR: any;
declare const BUILD_VERSION: [number, number];
declare const execution_mode: 'userscript' | 'chrome_api' | 'ff_api';
declare const isBackground: boolean;
declare const chrome: typeof browser;