import { getUIValue } from '../../document' ; import { isContentEditable } from './isContentEditable' ; export function getValue < T extends Element | null > ( element ) ; export function getValue ( element ) { if ( ! element ) { return null ; } if ( isContentEditable ( element ) ) { return element . textContent ; } return getUIValue ( element as HTMLInputElement ) ; }