import { Color } from './colors'; export declare type ColorMap = { [key in Color]: string; }; /** * Parses the vscode CSS variables from the document, and returns them. */ export declare const parseColors: () => ColorMap; /** * 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 useCssVariables = () => { * const [vars, setVars] = useState<{ [key: string]: string }>({}); * useEffect(() => observeColors(setVars), []); * return vars; * } * ``` */ export declare const observeColors: (onChange: (colors: ColorMap) => void) => (() => void);