import { type Ref, type RefCallback } from 'react';
import { type ComponentCSSPropsConfig, type CSSPropType, type GDSComponent } from '@graphprotocol/gds-css';
/**
 * Returns a `ref` to set on an element, and an async function to get the current value of a CSS
 * prop from said element (or `null` if we can't access the DOM, e.g. on the server).
 */
export declare function useCSSProp<C extends GDSComponent, P extends keyof ComponentCSSPropsConfig<C> & string>(component: C, propName: P, options?: {
    ref?: Ref<HTMLElement>;
}): readonly [RefCallback<HTMLElement> | null, () => Promise<CSSPropType<ComponentCSSPropsConfig<C>[P]> | null>];
//# sourceMappingURL=useCSSProp.d.ts.map