import type React from "react" ; export const omit = ( obj , ... keys ) => { const result = { ... obj } ; for ( const key of keys ) { delete result [ key ] ; } return result ; } ; export const mergeRefs = < T = any > ( refs ) : React . RefCallback < T > => { return ( value ) => { refs . filter ( Boolean ) . forEach ( ( ref ) => { if ( typeof ref === "function" ) { ref ( value ) ; } else if ( ref != null ) { ( ref as React . MutableRefObject < T | null > ) . current = value ; } } ) ; } ; } ;