declare global { interface Document { mozSetImageElement?: (imageElementId: string, imageElement: HTMLCanvasElement) => void; getCSSCanvasContext?: (contextId: string, name: string, width: number, height: number) => CanvasRenderingContext2D; } } export type FeatureDetectFn = (targetWindow: Window | undefined) => boolean; /** * Test if the APIs neccessary for the Firefox fallback exist. * * @returns `true` if the browser supports the necessary APIs, `false` otherwise. */ export declare const hasMozElement: FeatureDetectFn; /** * Test if the APIs necessary for the Safari fallback exist. * * @returns `true` if the browser supports the necessary APIs, `false` otherwise. */ export declare const hasWebkitCanvas: FeatureDetectFn; /** * Test if CSS Houdini APIs are available. * * @returns `true` if the browser supports necessary Houdini APIs, `false` otherwise. */ export declare const hasHoudini: FeatureDetectFn;