@cds/core
Version:
Clarity Design System - common components, themes, and utilties
13 lines (12 loc) • 599 B
TypeScript
import { CDSState } from '../utils/global.js';
export declare class GlobalStateService {
static stateUpdates: import("../utils/event-subject.js").EventObservable<any>;
static get state(): CDSState;
static getValue(key: keyof CDSState): readonly {
focusTrapId: string;
}[] | readonly HTMLElement[] | Readonly<Record<string, any>> | Readonly<{
[key: string]: any;
}> | Readonly<Record<string, unknown>> | Readonly<import("@cds/core/internal").MotionRegistry>;
static setValue(key: keyof CDSState, val: CDSState[keyof CDSState]): void;
static log(): void;
}