/**
 * Repertoire package removal helpers.
 *
 * Provides:
 * - findScopeReferences: scan YAML files for @scope references (for pre-removal warning)
 * - shouldRemoveOwnerDir: determine if the @owner directory should be deleted
 */
export interface ScopeReference {
    /** Absolute path to the file containing the @scope reference. */
    filePath: string;
}
/**
 * Configuration for scope reference scanning.
 *
 * Separates the two kinds of scan targets to enable precise control over
 * which paths are scanned, avoiding unintended paths from root-based derivation.
 */
export interface ScanConfig {
    /** Directories to recursively scan for YAML files containing the scope substring. */
    workflowDirs: string[];
    /** Individual YAML files to check for the scope substring (e.g. workflow-categories.yaml). */
    categoriesFiles: string[];
}
/**
 * Find all files that reference a given @scope package.
 *
 * Scans the 3 spec-defined locations:
 * 1. workflowDirs entries recursively (e.g. ~/.takt/workflows, .takt/workflows)
 * 2. categoriesFiles entries individually (e.g. ~/.takt/preferences/workflow-categories.yaml)
 *
 * @param scope  - e.g. "@nrslib/takt-fullstack"
 * @param config - explicit scan targets (workflowDirs + categoriesFiles)
 */
export declare function findScopeReferences(scope: string, config: ScanConfig): ScopeReference[];
/**
 * Determine whether the @owner directory can be removed after deleting a repo.
 *
 * Returns true if the owner directory would have no remaining subdirectories
 * once the given repo is removed.
 *
 * @param ownerDir         - absolute path to the @owner directory
 * @param repoBeingRemoved - repo name that will be deleted (excluded from check)
 */
export declare function shouldRemoveOwnerDir(ownerDir: string, repoBeingRemoved: string): boolean;
//# sourceMappingURL=remove.d.ts.map