import { SfError } from '@salesforce/core'; import { BrowserforceCommand } from '../../browserforce-command.js'; export type BrowserforceApplySettingResult = { /** config key of the setting, e.g. `densitySettings` */ key: string; /** planned changes with secrets and environment values masked, `null` when no action is necessary */ changes: Record | null; /** true only when the changes were applied to the org */ applied: boolean; }; type BrowserforceApplyResponse = { success: boolean; dryRun: boolean; settings: BrowserforceApplySettingResult[]; }; export declare class BrowserforceApply extends BrowserforceCommand { static description: string; static examples: string[]; run(): Promise; } /** * Entry of the `apply --json` result for one setting. * @param key config key of the setting * @param maskedDiff planned changes, already masked; undefined when no action is necessary * @param applied whether the changes were applied to the org */ export declare function buildSettingResult(key: string, maskedDiff: unknown, applied: boolean): BrowserforceApplySettingResult; /** * The error of a failed setting, carrying in its `data` (shown by `--json`) the results of the settings handled before * it, so a caller knows which ones were already applied, and the documentation page of the failed setting (also shown * as an action). The message and the cause stay those of the original error. */ export declare function withSettingResults(err: unknown, data: { dryRun: boolean; settings: BrowserforceApplySettingResult[]; failedSetting: string; }): SfError; export {};