/** * Check if parent HTML element's background color is part of the array of RGBA color codes * provided as input. Execute a callback if we find a match (or simply exit the function without returning a value) and return parent node reference callback. * * @author Taras Pavliv * @param backgroundColorToLookup An array of RGBA color codes to test parent element's background color against. * @param callback Function to execute if there's a color match. * @returns Reference callback to the first parent node element with matching background color. */ declare const useParentBackgroundColor: (backgroundColorToLookup: string[], callback: (background: string) => void) => [(node: HTMLElement) => void]; export { useParentBackgroundColor };