import { stardust } from '@nebula.js/stardust'; import type { ExtendedTheme, BackgroundColors } from './types'; type ChartBackgroundResolver = (theme: stardust.Theme) => string | undefined; /** * The colors in the chart can depend on background colors set on the chart, object and sheet level. * Even though not officially supported, it is expected that css settings on object and sheet are respected. * The priority order is: chart theme > object css > object theme * If the result for object/chart background is transparent, the sheet css color is used */ export declare const getBackgroundColors: (theme: ExtendedTheme, rootElement: HTMLElement, chartBackgroundResolver?: ChartBackgroundResolver, objectBackgroundResolver?: ChartBackgroundResolver) => BackgroundColors; declare const useExtendedTheme: (rootElement: HTMLElement, chartBackgroundResolver?: ChartBackgroundResolver, objectBackgroundResolver?: ChartBackgroundResolver) => ExtendedTheme; export default useExtendedTheme;