import { CompleteThemeSettingsInternal, ThemeOid, ThemeSettings } from '../../../types'; /** * Returns the theme settings for the given theme OID or theme settings, along with a non-fatal * error if loading a theme by OID failed. * * If the given theme is a theme OID, the theme settings will be fetched from the Sisense instance. * If the given theme is a theme settings object, the theme settings will be merged with parent's one and * returned as is. * * The returned theme settings are always usable: when loading by OID fails they fall back to the * inherited theme settings (the parent provider's, or the default ones at the root), and the failure * is surfaced through `error` for the caller to report. * * @param userTheme Theme OID or theme settings object * @returns The effective theme settings, and the theme loading error if one occurred */ export declare function useThemeSettings(userTheme?: ThemeOid | ThemeSettings): { themeSettings: CompleteThemeSettingsInternal; error: Error | null; };