import { CuneiformCommand } from '../../../base/cuneiform-command.js'; /** * Command result type for JSON output. */ export type DefinitionExportResult = { /** Whether the export was successful */ success: boolean; /** Number of definitions exported */ definitionsExported: number; /** Path to the output directory */ outputPath: string; /** List of files created */ files: string[]; /** Error message if failed */ error?: string; }; /** * Exports profiling definitions to SFDMU-compatible CSV files. * * Use this command to: * - Back up profiling definitions before major changes * - Migrate definitions between environments (sandbox → production) * - Version control profiling configuration in Git * - Share definition templates across multiple orgs * * @example * ```bash * # Export all definitions from the target org * sf cuneiform definition export --target-org myOrg * * # Export to a specific directory * sf cuneiform definition export --target-org myOrg --output ./backup * * # Export with VCS-friendly mode (excludes Salesforce IDs) * sf cuneiform definition export --target-org myOrg --exclude-ids * ``` */ export default class DefinitionExport extends CuneiformCommand { static readonly summary: string; static readonly description: string; static readonly examples: string[]; static readonly flags: { 'target-org': import("@oclif/core/interfaces").OptionFlag; output: import("@oclif/core/interfaces").OptionFlag; 'exclude-ids': import("@oclif/core/interfaces").BooleanFlag; 'api-version': import("@oclif/core/interfaces").OptionFlag; }; /** * Executes the export command. * * Displays org identity, runs SFDMU export with a progress spinner, then * renders the results table, completion message, and any warnings. * * @returns DefinitionExportResult with success status, count, path, and file list */ run(): Promise; }