import { type Ref } from 'react';
import StyleObserver from 'style-observer';
type Record<T extends string> = Parameters<ConstructorParameters<typeof StyleObserver>[0]>[0][0] & {
    property: T;
};
/**
 * Hook that observes style changes on an element. Calls the `onChange` callback whenever specified
 * CSS properties change.
 */
export declare function useStyleObserver<T extends string>(properties: T[], onChange: (records: Record<T>[]) => void, deps: unknown[], options?: {
    ref?: Ref<HTMLElement> | undefined;
    immediate?: boolean | undefined;
    disabled?: boolean | undefined;
}): import("react").RefCallback<HTMLElement>;
export {};
//# sourceMappingURL=useStyleObserver.d.ts.map