import { UIElement } from '@instructure/shared-types'; type ClassListApi = { toArray: () => string[]; contains: (className: string) => boolean; add: (className: string) => void; remove: (className: string) => void; }; /** * --- * category: utilities/DOM * --- * * Produces a classList object containing functions * for both adding and removing classes from an element. * Also provides a contains function to query if the * element contains a specified class name. * @module getClassList * * @param { Node | Window | React.ReactElement | React.Component | function } element - component or DOM node * @return {Object} object containing classList functions 'contains', 'add', and 'remove' */ declare function getClassList(element: UIElement): ClassListApi; export default getClassList; export { getClassList }; //# sourceMappingURL=getClassList.d.ts.map