import { MultiDbManager, Dimension } from './multi-db-manager'; /** * ID mapping record for external to internal ID translation */ export interface IdMapping { internal_id: string; external_id: string; plugin_id: string; } /** * Manages ID mappings between external IDs (from documentation) and internal DB IDs (UUIDs). * Each dimension has its own ID mapping table. */ export declare class IdMapper { private dbManager; /** * Creates a new IdMapper instance. * * @param dbManager The MultiDbManager instance */ constructor(dbManager: MultiDbManager); /** * Gets the table name for ID mappings for a dimension. * * @param dimension The dimension * @returns The table name */ private getMappingTableName; /** * Maps an external ID to an internal ID for a dimension. * If the mapping doesn't exist, creates a new one. * * @param dimension The dimension * @param externalId The external ID (e.g., symbol_id from JSONL, adr_number) * @param internalId The internal UUID * @param pluginId The plugin ID * @returns Promise that resolves when the mapping is stored */ setMapping(dimension: Dimension, externalId: string, internalId: string, pluginId: string): Promise; /** * Gets the internal ID for an external ID. * * @param dimension The dimension * @param externalId The external ID * @param pluginId The plugin ID * @returns Promise that resolves to the internal ID, or null if not found */ getInternalId(dimension: Dimension, externalId: string, pluginId: string): Promise; /** * Gets the external ID for an internal ID. * * @param dimension The dimension * @param internalId The internal UUID * @param pluginId The plugin ID * @returns Promise that resolves to the external ID, or null if not found */ getExternalId(dimension: Dimension, internalId: string, pluginId: string): Promise; /** * Deletes a mapping for an external ID. * * @param dimension The dimension * @param externalId The external ID * @param pluginId The plugin ID * @returns Promise that resolves when the mapping is deleted */ deleteMapping(dimension: Dimension, externalId: string, pluginId: string): Promise; } //# sourceMappingURL=id-mapper.d.ts.map