import { DependencyList } from "react";
import { OverlayInvalidationReason } from "./IframeOverlayProvider";
import { OverlayMetrics } from "./geometry";
export type OverlayMeasurementOptions<T> = {
    interests?: OverlayInvalidationReason[];
    initialValue: T;
    equals: (previous: T, next: T) => boolean;
    validateBeforePaint?: boolean;
};
export declare function useOverlayMeasurement<T>(measure: (metrics: OverlayMetrics, reasons: ReadonlySet<OverlayInvalidationReason>) => T, deps: DependencyList, options: OverlayMeasurementOptions<T>): T;
