import { MemoryRunStore } from './memoryRunStore.js';
import { PostgresRunStore } from './postgresRunStore.js';
import { getPersistenceMode } from '../config/persistence.js';
let runStoreInstance = null;
export function getRunStore() {
    if (!runStoreInstance) {
        const mode = getPersistenceMode();
        if (mode === 'memory') {
            runStoreInstance = new MemoryRunStore();
        }
        else {
            runStoreInstance = new PostgresRunStore();
        }
    }
    return runStoreInstance;
}
export * from './types.js';
export * from './runStore.js';
//# sourceMappingURL=index.js.map