type DirectoryOccupant = { name: string; suffix: string; }; /** * For a directory named `directoryName`, returns the registry type that owns `metaSuffix` there and * every other type whose files can live in the same directory. `others` is empty for the vast * majority of types, which keeps their whole-directory fast paths unchanged. */ export declare function directoryOccupancy(directoryName: string, metaSuffix: string): { typeName: string | undefined; others: DirectoryOccupant[]; }; /** * Whether `dir` is a directory decomposed from a `metaSuffix` file of type `typeName`, rather than * another type's decomposed directory, a plain subfolder of metadata files, or a folder that isn't * metadata at all (e.g. UTAM page objects in `flexipages/__utam__/`). * * - The leaf file (`.-meta.`) names the suffix directly. * - A real `.-meta.xml` file anywhere inside means a plain subfolder of metadata. * - Otherwise (a root with no leaf elements has no leaf file): in a directory only this type uses * (`shared: false`), the disassembler's sidecars identify it. The root element every fragment * carries is checked where types must be told apart (`shared: true`), and as the fallback for * directories decomposed before the sidecars existed. It can't be required everywhere: a root * need not be named after its type (`BusinessHours.settings-meta.xml` has ``; * see `rootNamesFor` for the known exceptions). * - `requireSidecar`: in a folder the type's files were found in by suffix (not named after the * type), only a directory the disassembler produced counts -- a real folder of metadata laid out * one component per folder (`MyFlow/MyFlow.flow-meta.xml`) looks like a leaf file otherwise. */ export declare function isDecomposedDirOfType(dir: string, metaSuffix: string, typeName: string, { shared, requireSidecar }?: { shared: boolean; requireSidecar?: boolean; }): Promise; export {};