interface Config { themeMap: object; prefetchId?: string; id?: string; storageKey?: string; attr?: string; } export interface SwitchConfig { theme: string; useStorage?: boolean; success?: () => void; } interface Result { switcher: (config: SwitchConfig) => void; getTheme: () => string; } /** * const themeSwitcher = ThemeSwitcher({ * id: 'theme-style', * storageKey: 'site-theme', * }); * * @param config */ declare const themeSwitcher: (config: Config) => Result; export default themeSwitcher;