/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ import type { ThemeConfig, ThemeItem } from '../types'; export declare const THEME_RUNTIME_REFRESH_EVENT = "theme-editor:runtime-refresh"; export declare function listThemeItems(api: any): Promise; export declare function updateUserTheme(api: any, themeId: number | null): Promise; export declare function getCurrentUserThemeId(user: any): number | null | undefined; export declare function getDefaultThemeItem(items?: ThemeItem[]): ThemeItem; export declare function getUserSelectedThemeItem(items: ThemeItem[] | undefined, themeId: number | null | undefined): ThemeItem; export declare function getEffectiveCurrentThemeItem(items: ThemeItem[] | undefined, themeId: number | null | undefined): ThemeItem; export declare function getEffectiveCurrentThemeId(items: ThemeItem[] | undefined, themeId: number | null | undefined): number; export declare function isDefaultThemeEffective(items: ThemeItem[] | undefined, themeId: number | null | undefined): boolean; export declare function serializeThemeItem(item: ThemeItem): string; export declare function normalizeThemeConfig(themeConfig: ThemeConfig | null | undefined, fallback: ThemeConfig): ThemeConfig;