interface KWPFrame { type: string; id: string; method?: string; payload?: unknown; error?: { code: string; message: string; }; } interface TransportClient { connect(): Promise; request(frame: KWPFrame): Promise; disconnect(): Promise; } interface TransportDeps { UnixSocketClient: new (path: string) => TransportClient; HttpClient: new (port: number) => TransportClient; } interface ConnectOptions { socketPath?: string; httpPort?: number; } export interface TokenAddOptions extends ConnectOptions { /** JSON pointer identifying the token (e.g. `/color/brand/primary`). */ pointer: string; /** Human-readable token name. */ name: string; /** DTIF token type (e.g. `color`, `dimension`). */ type?: string; /** Serialised token value. Accepts JSON strings; parsed before sending. */ value?: string; } /** * Register a new design token in the running DSR kernel. * * @param options - Token metadata and connection options. * @param deps - Optional transport overrides (used in tests). */ export declare function tokenAdd(options: TokenAddOptions, deps?: TransportDeps): Promise; export interface TokenDeprecateOptions extends ConnectOptions { /** JSON pointer of the token to deprecate. */ pointer: string; /** Optional replacement token pointer. */ replacement?: string; } /** * Mark a design token as deprecated in the running DSR kernel. * * @param options - Deprecation details and connection options. * @param deps - Optional transport overrides (used in tests). */ export declare function tokenDeprecate(options: TokenDeprecateOptions, deps?: TransportDeps): Promise; export interface ComponentRegisterOptions extends ConnectOptions { /** Component name (must be unique in the registry). */ name: string; /** Package that exports this component. */ packageName: string; /** Optional semver version of the package. */ version?: string; /** Optional comma-separated list of component names this replaces. */ replaces?: string; } /** * Register a component in the running DSR kernel's component registry. * * @param options - Component definition and connection options. * @param deps - Optional transport overrides (used in tests). */ export declare function componentRegister(options: ComponentRegisterOptions, deps?: TransportDeps): Promise; export interface RuleConfigureOptions extends ConnectOptions { /** Rule identifier (e.g. `color/no-raw-value`). */ ruleId: string; /** New severity: `error`, `warn`, or `off`. */ severity?: string; /** Rule options as a JSON string. */ options?: string; } /** * Update a rule's configuration in the running DSR kernel. * * @param options - Rule configuration and connection options. * @param deps - Optional transport overrides (used in tests). */ export declare function ruleConfigure(options: RuleConfigureOptions, deps?: TransportDeps): Promise; export {}; //# sourceMappingURL=write.d.ts.map