UNPKG

@quadible/web-sdk

Version:

The web sdk for Quadible's behavioral authentication service.

28 lines (27 loc) 1.22 kB
/** * The order matches the CSS side order: top, right, bottom, left. * * @ignore Named array elements aren't used because of multiple TypeScript compatibility complaints from users */ export type FrameSize = [number | null, number | null, number | null, number | null]; export declare const screenFrameCheckInterval = 2500; /** * For tests only */ export declare function resetScreenFrameWatch(): void; /** * A version of the entropy source without stabilization. * * Warning for package users: * This function is out of Semantic Versioning, i.e. can change unexpectedly. Usage is at your own risk. */ export declare function getUnstableScreenFrame(): () => Promise<FrameSize>; /** * A version of the entropy source with stabilization to make it suitable for static fingerprinting. * * Sometimes the available screen resolution changes a bit, e.g. 1900x1440 → 1900x1439. A possible reason: macOS Dock * shrinks to fit more icons when there is too little space. The rounding is used to mitigate the difference. * * The frame width is always 0 in private mode of Safari 17, so the frame is not used in Safari 17. */ export default function getScreenFrame(): () => Promise<FrameSize | undefined>;