import { type FieldGroup, type Field, type JsonSchema } from './json-schema-utils.js'; import { type DeprecatedSetting } from './plugins/deprecated.js'; import { schemas } from './plugins/index.js'; /** * Version of the catalog format. Adding information keeps it; removing or renaming a field increments it, * so tools reading the catalog (like sfdx-hardis) can detect an incompatible change. * Version 1 is the format of the first release that contains `sf browserforce plugins list`. * `docUrl` was added later without changing it. */ export declare const CATALOG_FORMAT_VERSION = 1; export type PluginKey = keyof typeof schemas; export type PluginCatalogEntry = { /** the key under `settings` in a config file */ key: PluginKey; title?: string; /** Markdown; its images point to their raw URL on GitHub */ description?: string; /** page of the setting on the documentation site */ docUrl: string; /** * JSON Schema (draft-7) of the value under `settings.`, without $ref. * Secrets have `x-password: true`, values that cannot be reverted `x-irreversible: true`. */ jsonSchema: JsonSchema; groups: FieldGroup[]; fields: Field[]; /** ready-to-use values of `settings.` (`examples` of the JSON Schema); the first one is the default */ examples: unknown[]; warnings: { /** paths of the fields that cannot be changed back once applied (`x-irreversible`) */ irreversibleFields: string[]; /** the feature only exists in this user interface (`x-user-interface`) */ userInterface: 'classic' | 'lightning' | null; /** what the org needs before the setting can be applied (`x-prerequisites`) */ prerequisites: string[]; }; }; export type PluginCatalog = { formatVersion: number; browserforceVersion: string; plugins: PluginCatalogEntry[]; deprecatedSettings: DeprecatedSetting[]; }; /** The JSON Schema of a setting with every $ref inlined, or undefined for an unknown setting. */ export declare function getPluginJsonSchema(key: string): JsonSchema | undefined; /** * JSON Schema of a whole config file, written to src/plugins/schema.json: images of the descriptions point to their * raw URL on GitHub, and each setting has a `markdownDescription` linking to its documentation page, shown by IDEs * when hovering its key. */ export declare function buildConfigJsonSchema(): JsonSchema; export declare function buildPluginCatalog(browserforceVersion: string): PluginCatalog;