import { PREDEFINED_THEMES, isPredefinedTheme } from '@wyn/reporting-utils/themes.js'; export { PREDEFINED_THEMES, isPredefinedTheme }; export declare const loadJs: (src: string) => Promise; export declare const loadCss: (href: string) => Promise; export declare const concatUrls: (...urls: string[]) => string; export declare const DEFAULT_TOKEN_KEY = "token"; export type CellKitVendorAssets = { runtimeCss: string; designerCss: string; base: string; editor: string; table: string; formulaTextbox: string; cellState: string; statusbar: string; autoMerge: string; io: string; tablesheet: string; shape: string; visual: string; pivot: string; export: string; designer: string; collaborationClient: string; biCore: string; biSheet: string; dpSheet: string; dpTablesheet: string; }; export type VendorAssets = { react: string; reactDev: string; cellkit: CellKitVendorAssets; }; export type VendorInfo = { reactVersion: string; cellKitVersion: string; assets: VendorAssets; }; export declare const requireVendorInfo: (vendor: VendorInfo | undefined) => VendorInfo; export declare const fetchPluginsInfo: (baseUrl: string, token: string, tokenKey?: string, useTokenInHeader?: boolean) => Promise; export type ExtraHandler = (plugins: { key: string; version: string; }[]) => Record | undefined; export declare const getVersionAndTheme: (baseUrl: string, token: string, key: string, tokenKey?: string, useTokenInHeader?: boolean, extraHandler?: ExtraHandler) => Promise; export type CustomThemeInfo = { displayName: string; modified: string; name: string; pluginVersion: string; themeVariables: Record; }; export declare const getCustomThemes: (baseUrl: string, token: string, tokenKey?: string, useTokenInHeader?: boolean) => Promise; export interface commonConfig { /** * The Wyn Enterprise server url. If your integration and Wyn server are not on the same site, you should provide your Wyn server host. * @example * baseUrl: 'https://your-wyn-server.com/', */ baseUrl: string; /** * The access token. The token is generated from the Admin portal. * @example * token: 'your-wyn-token', */ token: string; /** * Set the key name used in query parameters, this name is configured in the Wyn config file.\ * If `tokenKey` is not specified, the default value `'token'` is used. * @example * tokenKey: 'tkn', */ tokenKey?: string; /** * Set if the token should be sent in the request header instead of the query parameter.\ * default value: fasle * @example * useTokenInHeader: true, */ useTokenInHeader?: boolean; }