import { MetaAttributes } from '../helpers/types.js'; export type ParentXmlFile = { /** Absolute path to the parent metadata XML file. */ filePath: string; /** Component identity, used to resolve component-scope config overrides. */ fullName: string; }; /** * One-level `readdir` of `dir`, filtered to files ending in `.${metaSuffix}-meta.xml`. * Same glob `perFileHandler` (`decomposeFileHandler.ts`) already uses. Returns `[]` * when `dir` doesn't exist, matching the swallow-errors convention used elsewhere for * directory walks (e.g. `getPackageDirectories.searchRecursively`). */ export declare function listSuffixFiles(dir: string, metaSuffix: string): Promise; /** * Every parent XML file inside a single `strictDirectoryName`/`folderType` component directory * (e.g. `bots/MyBot` or `reports/MyFolder`), with `fullName` set uniformly to the *directory's* * basename for every file found. This matches `subDirectoryHandler` * (`decomposeFileHandler.ts`): it resolves component-scope config overrides exactly once per * component directory (keyed by that directory's own name) and applies the result to every file * the crate's directory-mode disassemble finds inside — not per individual file. A folder-typed * directory holding several reports resolves overrides once for the whole folder, not once per * report. * * Bots are a special case worth calling out: a bot's component directory holds both * `.bot-meta.xml` and one or more sibling `.botVersion-meta.xml` files * (confirmed against `fixtures/package-dir-2/bots/*`). Both are real decomposable content that * the crate's directory-mode disassemble processes, so both must be discovered here too, or * bot version files are silently never verified at all. */ export declare function listComponentDirFiles(componentDir: string, metaSuffix: string): Promise; /** * List every parent metadata XML file on disk for a resolved metadata type, mirroring the file * shapes `decomposeFileHandler.ts` discovers during a real decompose — but read-only, and without * the override-driven `perFileHandler` vs. whole-directory split (that split only changes *how* * real decompose disassembles a file, not *which* files exist; every file this function finds * would eventually be visited by a real decompose run one way or another). * * `fullName` on each result is the same component identity `decomposeFileHandler.ts` uses to * resolve component-scope config overrides (directory basename for `strictDirectoryName`/ * `folderType` types, filename minus the meta suffix ending otherwise). */ export declare function listParentXmlFilesForType(metaAttributes: MetaAttributes, manifestXmlPaths?: Set): Promise;