/** * sdk 域对外契约:对**其他插件**开放的编程面,以及动态通知种类的登记与确认(入站适配器,翻译成管线请求后不再发言)。 * 管理面与服务面分开的理由是**授权**——确认只能由用户经设置页发起,否则任何插件都能替用户放行自己。 */ import type { ConfigPort, SdkDeps } from "./deps.js"; import type { RegisteredKind } from "./impl/registry/type.js"; export type { RegisteredKind } from "./impl/registry/type.js"; export type { NotifierService } from "./impl/service/type.js"; export { NOTIFIER_SERVICE } from "./impl/service/index.js"; /** 装配对外服务面(组合根在 `apply` 期调用一次)。 */ export declare function installSdk(deps: SdkDeps): void; /** 卸载对外服务面,与 `installSdk` 配对:把服务从宿主上下文上收回来——此后消费方 `ctx.get` 拿到空, * 它们本就该按「通知中心不在」降级。 */ export declare function releaseSdk(): void; /** 动态种类清单:登记项 × 确认态(设置页渲染「允许 / 拒绝」用)。 */ export declare function listKinds(): RegisteredKind[]; /** 确认 / 撤销一个动态种类(设置端点调用)。返回设置写面的结果而不是布尔:失败分「版本冲突」与「服务不可用」 * 两类,端点据此回 409 与 503——压成一个布尔,用户看到的就只剩「操作失败」。 */ export declare function confirmKind(id: string, confirmed: boolean): Promise>>;