import { ID } from "../../../types/index.mjs"; import { Colors } from "../index.mjs"; import { App, ComputedRef, Ref } from "vue"; //#region src/composables/useTheme/adapters/adapter.d.ts interface ThemeAdapterSetupContext { colors: ComputedRef>; selectedId: Ref; isDark: Readonly>; } declare abstract class ThemeAdapter { /** CSS ident for theme ids, color keys, and the adapter prefix. */ static readonly SAFE_IDENT: RegExp; /** Rejected inside theme color values before they are written to a stylesheet. */ static readonly UNSAFE_CSS: RegExp; stylesheetId: string; prefix: string; rgb: boolean; /** * Teardown registered by `setup`. Called once via `app.onUnmount` on the * plugin path and available as a reachable handle on standalone paths. */ dispose?: () => void; constructor(prefix: string); generate(colors: Record, isDark?: boolean): string; private decompose; abstract setup(app: App, context: T, target?: string | HTMLElement | null): void; abstract update(colors: Record, isDark?: boolean): void; } //#endregion export { ThemeAdapter, ThemeAdapterSetupContext };