import { ObjectRef } from "./datapackExporter"; import { DatapackExportDefinition, ExportFieldDefinition, ObjectFilter, ObjectRelationship } from "./exportDefinitions"; /** * Class that stores and manages the configuration for exporting and expanding datapacks. * Used by both the {@link DatapackExporter} and {@link DatapackExpander} to determine how to export and expand datapacks. * Configurations can be loaded from a disk or added programmatically to the definition store. */ export declare class DatapackExportDefinitionStore { private readonly mergeFields; /** * Datapack export Configuration keyed by SObject type. */ private sobjectConfig; /** * Default configuration applied to all SObjects */ private globalConfig; private scopedConfig; /** * Loads the provided configuration into the datapack exporter. * * @param config - The configuration object containing datapack export definitions. */ load(config: Record>): void; /** * Get an array with all standard object definitions * @returns - An array of object definitions. */ objectDefintions(): DatapackExportDefinition[]; /** * Retrieves a definition from the DatapackExportDefinition object. * @param item - The item from which to retrieve the value. * @returns The DatapackExportDefinition for the specified item. */ get(item: ObjectRef): DatapackExportDefinition; /** * Retrieves the value of a specific key from a given item in the DatapackExportDefinition. * @param item - The item from which to retrieve the value. * @param key - The key of the value to retrieve. * @returns The value associated with the specified key. */ get(item: ObjectRef, key: T): DatapackExportDefinition[T]; /** * Sets a value in the DatapackExportDefinition object. * * @param item - The object reference. * @param key - The key of the value to set. * @param value - The value to set. */ set(item: ObjectRef, key: T, value: DatapackExportDefinition[T]): void; /** * Adds a Datapack export definition to the configuration store. Replaces any existing configuration. * * @param item - The item to add. Can be either a string representing the object type or an ObjectRef. * @param config - The configuration for the item. */ add(item: ObjectRef, config: Partial): void; /** * Retrieves the DatapackExportDefinition for the specified objectType and scope. * If the definition does not exist, it creates a new one and stores it in the configuration store. * * @param objectType - The type of the object for which to retrieve the definition. * @param scope - The scope of the definition. Can be undefined. * @returns The DatapackExportDefinition for the specified objectType. */ private getDefinition; private getDefinitionStore; private createConfig; isFieldIgnored(item: ObjectRef, field: string): boolean; isEmbeddedLookup(item: ObjectRef, field: string): boolean; getMatchingKeyFields(item: ObjectRef): string[]; getFieldConfig(item: ObjectRef, field: string, configKey?: keyof ExportFieldDefinition): any; getFieldsWith(item: ObjectRef, setting: K): Array<{ name: string; } & Required>>; getRelatedObjects(item: ObjectRef): Array<(ObjectFilter | ObjectRelationship) & { name: string; }>; getFileName(item: ObjectRef, field?: string): any; getFolder(item: ObjectRef): string | string[] | undefined; isAutoGeneratedMatchingKey(item: ObjectRef): boolean; } //# sourceMappingURL=exportDefinitionStore.d.ts.map