export declare function getPackageDirectories(metaDirectory: string, ignoreDirs: string[] | undefined, repoRootOverride?: string): Promise<{
    metadataPaths: string[];
    ignorePath: string;
}>;
/**
 * Resolves matching directories for every name in `directoryNames` in a single shared walk per
 * package directory, instead of one full walk per metadata type. Preserves the exact per-name
 * semantics of `getPackageDirectories`/`searchRecursively` — including "don't recurse into an
 * already-matched directory for that same name" — while allowing a different name's directory to
 * still be found nested beneath one that already matched another name (since independent
 * single-target calls, run separately per type today, would find it too).
 */
export declare function buildPackageDirectoryIndex(directoryNames: Iterable<string>, ignoreDirs: string[] | undefined, repoRootOverride?: string): Promise<{
    index: Map<string, string[]>;
    ignorePath: string;
}>;
