import { IRepo } from '../adapters/base.js'; import { IMigrationContext } from '../migration-context.js'; type RepoHandler = (repo: IRepo, header: string) => Promise; interface IOptions { warnMissingDirectory?: boolean; } /** * Processes each repository in the migration context using the provided handler. * * @param context - The migration context containing repositories, logger, and adapter. * @param param1 - Either a repository handler function or options for processing. * @param param2 - Optional repository handler function if `param1` is options. * * @returns A promise that resolves when all repositories have been processed. * * The function extracts repositories from the migration context and applies the provided handler * to each repository. It logs warnings for missing directories and errors encountered during processing. * * @example * ```typescript * await forEachRepo(context, handler); * await forEachRepo(context, options, handler); * ``` */ declare const _default: (context: IMigrationContext, param1: RepoHandler | IOptions, param2?: RepoHandler) => Promise; export default _default;