/** Finds the available width and height for a specified HTMLElement, traversing it's parents until it finds something with constrained dimensions. Falls back to the inner dimensions of the browser window if none is found. @private */ export default function (elem: HTMLElement): [number | undefined, number | undefined];