type StyleProps = Record; /** * Get the style properties of an element. * * @param element The element to get the style properties of. * @param propName The name of the property to get. * @returns If `propName` is specified, returns the value of that property. Otherwise, returns an object containing all style properties and their values. * * @example * const element = document.createElement('div') * element.style.color = 'red' * document.body.appendChild(element) * console.log(getStyleProps(element, 'color')) * @since 1.0.0 */ declare const getStyleProps: (element: HTMLElement, propName?: string) => StyleProps | string; export default getStyleProps;