export declare const enum Theme { Light = "vscode-light", Dark = "vscode-dark", HighContrast = "vscode-high-contrast" } /** * Gets the current general VS Code theme. */ export declare const getTheme: () => Theme; /** * Watches the body and calls the callback function when the colors change. * This can very easily be wrapped into a react or preact hook, for example: * * ``` * import { useState, useEffect } from 'preact/hooks'; * * const useTheme = () => { * const [theme, setTheme] = useState<{ [key: string]: string }>({}); * useEffect(() => observeTheme(setTheme), []); * return theme; * }; * ``` */ export declare const observeTheme: (onChange: (theme: Theme) => void) => (() => void);