import { AvailableThermalPalettes, ThermalManager, ThermalPaletteType, ThermalTool } from "@labir/core"; import { createContext } from "@lit/context"; export type ManagerContext = ThermalManager; export const managerContext = createContext("manager-instance"); export type ManagerPaletteContext = { key: AvailableThermalPalettes, data: ThermalPaletteType } export const managerPaletteContext = createContext( "manager-palette-context" ); export type ManagerSmoothContext = boolean; export const managerSmoothContext = createContext( "manager-smooth-context" ); export type ManagerGraphFunctionContext = boolean; export const managerGraphFunctionContext = createContext("manager-graph-function-context"); export type LanguageContextType = "string"; export const languageContext = createContext( "language" ); export type ToolContext = ThermalTool; export const toolContext = createContext( "tool-context" ); export type ToolsContext = ThermalManager["tool"]["tools"]; export const toolsContext = createContext( "tools-context" );