/** * Rynex Refs and DOM Access * Reference management for DOM elements */ export interface Ref { current: T | null; } /** * Create a ref object * Used to hold reference to DOM element */ export declare function ref(initialValue?: T | null): Ref; /** * Use ref hook * Creates and returns a ref object */ export declare function useRef(initialValue?: T | null): Ref; /** * Forward ref to child component * Allows parent to access child's DOM element */ export declare function forwardRef

>(component: (props: P, ref: Ref) => HTMLElement): (props: P & { ref?: Ref; }) => HTMLElement; /** * Create callback ref * Executes callback when ref is set */ export declare function callbackRef(callback: (element: T | null) => void): (element: T | null) => void; /** * Merge multiple refs into one * Useful when you need to forward ref and use it internally */ export declare function mergeRefs(...refs: (Ref | ((element: T | null) => void) | null)[]): (element: T | null) => void; //# sourceMappingURL=refs.d.ts.map