UNPKG

762 BTypeScriptView Raw
1import { Chunks } from "./decoder/decodeData";
2import { Point } from "./locator";
3export interface QRCode {
4 binaryData: number[];
5 data: string;
6 chunks: Chunks;
7 version: number;
8 location: {
9 topRightCorner: Point;
10 topLeftCorner: Point;
11 bottomRightCorner: Point;
12 bottomLeftCorner: Point;
13 topRightFinderPattern: Point;
14 topLeftFinderPattern: Point;
15 bottomLeftFinderPattern: Point;
16 bottomRightAlignmentPattern?: Point;
17 };
18}
19export interface Options {
20 inversionAttempts?: "dontInvert" | "onlyInvert" | "attemptBoth" | "invertFirst";
21}
22declare function jsQR(data: Uint8ClampedArray, width: number, height: number, providedOptions?: Options): QRCode | null;
23export default jsQR;