import { MetaAttributes, PathIndex } from '../helpers/types.js'; import { MetadataType } from './registry/types.js'; /** * Resolves and validates the SDR registry entry for a metadata suffix or exact-case type name * (rejects CustomObject, unknown values, and unsupported adapter strategies). Synchronous and side-effect free, so callers can * use it to learn a type's `directoryName` ahead of time — e.g. to build a shared * `buildPackageDirectoryIndex` covering every requested type in one filesystem walk — without * duplicating this lookup logic. */ export declare function resolveMetadataTypeEntry(metadataType: string): MetadataType; /** * Whether a type keeps each component in its own folder (`bots/MyBot/MyBot.bot-meta.xml`). SDR's * `strictDirectoryName` alone only requires the exact directory name; most such types (CustomSite, * EmailServicesFunction, BotTemplate, the policy and restriction-rule types, ...) still keep their * files directly in that directory. Only the `decomposed` adapter (Bot, CustomObjectTranslation) * uses one folder per component. */ export declare function usesComponentFolders(type: MetadataType): boolean; /** * When `metadataType` is a suffix shared by several top-level types (e.g. `site`: CustomSite and * SiteDotCom), returns the type the suffix resolves to and the others, which can only be selected * by type name. Returns `undefined` for unshared suffixes and for type names. */ export declare function typesSharingSuffix(metadataType: string): { selected: string; others: string[]; } | undefined; /** * The `--metadata-type` value that selects exactly this type: its suffix when the suffix resolves * to it, otherwise its type name (types that lose a shared suffix, e.g. CustomSite). */ export declare function selectorForType(type: MetadataType): string; /** * For a child-type suffix whose components only exist inside the parent's file (e.g. `assignmentRule` * inside `.assignmentRules-meta.xml`, `workflowAlert` inside `.workflow-meta.xml`), returns the * parent to process instead. Returns `undefined` for top-level types, unknown suffixes, and children * stored as their own files (children of a `decomposed` parent, e.g. CustomObject's `field`). * CustomFieldTranslation is redirected too: it is unaddressable on its own, and its registry * directoryName (`fields`) would otherwise point at CustomField files. */ export declare function parentForInFileChildSuffix(metaSuffix: string): { parentSuffix: string; parentName: string; childName: string; } | undefined; export declare function getRegistryValuesBySuffix(metaSuffix: string, command: string, ignoreDirs: string[] | undefined, repoRootOverride?: string, uniqueIdOverride?: string, pathIndex?: PathIndex): Promise<{ metaAttributes: MetaAttributes; ignorePath: string; }>; /** * Whether the type's files are found by suffix anywhere, the way SDR resolves a `-meta.xml` file, * rather than only in folders named after the type. Strict-folder types (bots, object translations, * bundles) are resolved by their folder in SDR too, folder-typed content (reports, dashboards, ...) * is laid out by folder, and labels have their own handling, so those keep the folder lookup. */ export declare function findsFilesBySuffix(type: MetadataType): boolean;