/**
 * CLI Migrate Command
 *
 * Imports skills from other agent orchestration platforms (e.g. OpenClaw)
 * into Crewly format, with automatic security scanning.
 *
 * @module cli/commands/migrate
 */
/** Supported source platforms for migration */
export type MigrationSource = 'openclaw';
/** Options for the migrate command */
export interface MigrateOptions {
    from: MigrationSource;
    dir?: string;
    output?: string;
}
/** Security severity levels */
export type SecurityRating = 'safe' | 'warning' | 'danger';
/** A single security finding in a skill file */
export interface SecurityFinding {
    pattern: string;
    description: string;
    rating: SecurityRating;
    line: number;
    content: string;
}
/** Security scan result for a single skill */
export interface SkillScanResult {
    name: string;
    sourcePath: string;
    findings: SecurityFinding[];
    overallRating: SecurityRating;
}
/** Result of a full migration */
export interface MigrationResult {
    imported: number;
    skipped: number;
    scanResults: SkillScanResult[];
}
/**
 * Dangerous patterns to scan for in imported skill files.
 * Each pattern includes a regex, description, and severity.
 */
export declare const SECURITY_PATTERNS: Array<{
    regex: RegExp;
    description: string;
    rating: SecurityRating;
}>;
/**
 * Scans a single file's content for dangerous security patterns.
 *
 * @param name - Skill name for reporting
 * @param sourcePath - Original file path
 * @param content - File content to scan
 * @returns Scan result with all findings and overall rating
 */
export declare function scanFileContent(name: string, sourcePath: string, content: string): SkillScanResult;
/**
 * Discovers OpenClaw skill files in the given directory.
 * Looks for a skills/ subdirectory and finds all .sh, .py, .ts, .js files.
 *
 * @param sourceDir - Root directory of the OpenClaw project
 * @returns Array of { name, filePath } for each discovered skill
 */
export declare function discoverOpenClawSkills(sourceDir: string): Array<{
    name: string;
    filePath: string;
}>;
/**
 * Generates a Crewly SKILL.md metadata file for an imported skill.
 *
 * @param name - Skill name
 * @param originalSource - Original platform name
 * @returns SKILL.md content string
 */
export declare function generateSkillMetadata(name: string, originalSource: string): string;
/**
 * Imports a single OpenClaw skill into Crewly format.
 *
 * @param skill - Discovered skill info
 * @param outputDir - Target directory for Crewly skills
 * @returns Scan result for the imported skill
 */
export declare function importSkill(skill: {
    name: string;
    filePath: string;
}, outputDir: string): SkillScanResult;
/**
 * Prints the security scan report to the console.
 *
 * @param results - Array of scan results from all imported skills
 */
export declare function printSecurityReport(results: SkillScanResult[]): void;
/**
 * Main entry point for the `crewly migrate` command.
 * Imports skills from a source platform and runs security analysis.
 *
 * @param options - Command options including --from and optional --dir / --output
 */
export declare function migrateCommand(options: MigrateOptions): Promise<void>;
//# sourceMappingURL=migrate.d.ts.map