import { BaseCommand } from './base.js'; export interface ExtractFlags { allowBrokenRelations?: boolean; collections?: string; content?: boolean; dashboards?: boolean; directusToken: string; directusUrl: string; disableTelemetry?: boolean; excludeCollections?: string; extensions?: boolean; files?: boolean; flows?: boolean; noAssets?: boolean; partial?: boolean; permissions?: boolean; programmatic: boolean; relationStrategy?: 'deep' | 'empty' | 'preserve'; schema?: boolean; settings?: boolean; templateLocation: string; templateName: string; userEmail: string; userPassword: string; users?: boolean; } export default class ExtractCommand extends BaseCommand { static description: string; static examples: string[]; static flags: { allowBrokenRelations: import("@oclif/core/interfaces").BooleanFlag; collections: import("@oclif/core/interfaces").OptionFlag; excludeCollections: import("@oclif/core/interfaces").OptionFlag; noAssets: import("@oclif/core/interfaces").BooleanFlag; relationStrategy: import("@oclif/core/interfaces").OptionFlag; content: import("@oclif/core/interfaces").BooleanFlag; dashboards: import("@oclif/core/interfaces").BooleanFlag; extensions: import("@oclif/core/interfaces").BooleanFlag; files: import("@oclif/core/interfaces").BooleanFlag; flows: import("@oclif/core/interfaces").BooleanFlag; permissions: import("@oclif/core/interfaces").BooleanFlag; schema: import("@oclif/core/interfaces").BooleanFlag; settings: import("@oclif/core/interfaces").BooleanFlag; users: import("@oclif/core/interfaces").BooleanFlag; directusToken: import("@oclif/core/interfaces").OptionFlag; directusUrl: import("@oclif/core/interfaces").OptionFlag; disableTelemetry: import("@oclif/core/interfaces").BooleanFlag; partial: import("@oclif/core/interfaces").BooleanFlag; programmatic: import("@oclif/core/interfaces").BooleanFlag; templateLocation: import("@oclif/core/interfaces").OptionFlag; templateName: import("@oclif/core/interfaces").OptionFlag; userEmail: import("@oclif/core/interfaces").OptionFlag; userPassword: import("@oclif/core/interfaces").OptionFlag; }; /** * Main run method for the ExtractCommand * @returns {Promise} - Returns nothing */ run(): Promise; /** * Extracts the template to the specified directory * @param {string} templateName - The name of the template to extract * @param {string} directory - The directory to extract the template to * @param {ExtractFlags} flags - The command flags * @returns {Promise} - Returns nothing */ private extractTemplate; /** * Runs the interactive mode for template extraction * @param {ExtractFlags} flags - The command flags * @returns {Promise} - Returns nothing */ private runInteractive; /** * Runs the programmatic mode for template extraction * @param {ExtractFlags} flags - The command flags * @returns {Promise} - Returns nothing */ private runProgrammatic; /** * Validates the flags for programmatic mode * @param {ExtractFlags} flags - The command flags to validate * @throws {Error} If required flags are missing * @returns {void} */ private validateProgrammaticFlags; }