/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ import React from 'react'; import { AnyThemeConfig, SerializableThemeConfig, SupersetTheme } from './types'; export declare class Theme { theme: SupersetTheme; private antdConfig; private constructor(); /** * Create a theme from any theme configuration * Automatically handles both AntdThemeConfig and SerializableThemeConfig * If simple tokens are provided as { token: {...} }, they will be applied with defaults * If no config is provided, uses default tokens * Dark mode can be set via the algorithm property in the config * @param config - The theme configuration * @param baseTheme - Optional base theme to apply under the config */ static fromConfig(config?: AnyThemeConfig, baseTheme?: AnyThemeConfig): Theme; private static getFilteredAntdTheme; private static getAntdTokens; /** * Update the theme using any theme configuration * Automatically handles both AntdThemeConfig and SerializableThemeConfig * Dark mode should be specified via the algorithm property in the config */ setConfig(config: AnyThemeConfig): void; /** * Export the current theme as a serializable configuration */ toSerializedConfig(): SerializableThemeConfig; toggleDarkMode(isDark: boolean): void; json(): string; private updateProviders; SupersetThemeProvider({ children }: { children: React.ReactNode; }): import("@emotion/react/jsx-runtime").JSX.Element; } //# sourceMappingURL=Theme.d.ts.map