/** * This hook calls the provided `onResize` callback whenever the WebGL canvas is resized. * It detects size changes when the element is resized, the browser zoom updates or the device pixel ratio changes. * These last two conditions aren't supported by Safari, so `onResize` won't be called in these cases on Safari. * @param gl The WebGL2 rendering context whose canvas to observe. * @param onResize Callback invoked after the canvas and viewport are updated. */ export declare function useWebGLResizeObserver(gl: WebGL2RenderingContext | null, onResize: () => void): void;