/** 纯 JSON 文档编辑。账号键中的点号没有路径语义,路径必须显式分段。 */ export type ConfigurationValue = null | boolean | number | string | ConfigurationValue[] | ConfigurationDocument; export interface ConfigurationDocument { [key: string]: ConfigurationValue; } export type ConfigurationPath = string[]; export type ConfigurationChange = { op: "set"; path: ConfigurationPath; value: ConfigurationValue; } | { op: "remove"; path: ConfigurationPath; }; export type SecretChange = { op: "set"; path: ConfigurationPath; value: ConfigurationValue; } | { op: "keep" | "clear"; path: ConfigurationPath; }; export interface SecretState { path: ConfigurationPath; configured: boolean; } export interface ConfigurationProjection { document: ConfigurationDocument; secretStates: SecretState[]; } export declare function parseConfigurationDocument(value: unknown): ConfigurationDocument; export declare function projectConfiguration(input: unknown, secretPaths: unknown): ConfigurationProjection; export declare function applyConfigurationChanges(input: unknown, changes: unknown, secretPaths: unknown): ConfigurationDocument; export declare function applySecretChanges(input: unknown, changes: unknown, secretPaths: unknown): ConfigurationDocument; //# sourceMappingURL=configuration-document.d.ts.map