UNPKG

@looker/embed-services

Version:
13 lines (12 loc) 683 B
import type { ITheme } from '@looker/sdk'; import type { GetOptions, IEntityService, IItemList } from './ItemList'; import type { ServiceCreatorFunc } from './ServiceFactory'; export interface IThemeService extends IItemList<ITheme>, IEntityService<ITheme> { defaultTheme?: ITheme; getDefaultTheme(ts?: Date, options?: GetOptions): Promise<ITheme>; load(options?: GetOptions): Promise<IThemeService>; } export declare const THEME_SERVICE_NAME = "ThemeService"; export declare const themeServiceCreator: ServiceCreatorFunc<IThemeService>; export declare const registerThemeService: (timeToLive?: number) => void; export declare const getThemeService: () => IThemeService;