import React from 'react';
/**
 * Resizes the canvas to fill its container and scales the drawing context
 * to match the device's pixel ratio. Re-runs on window resize.
 */
export declare function useCanvasSize(canvasRef: React.RefObject<HTMLCanvasElement | null>, { autoScale }?: {
    autoScale?: boolean;
}): void;
