export function getPersistenceMode() {
    const mode = process.env['GATEWAY_PERSISTENCE'];
    if (mode === 'persistent' || mode === 'postgres') {
        return 'postgres';
    }
    return mode === 'memory' ? 'memory' : 'postgres';
}
export function isMemoryMode() {
    return getPersistenceMode() === 'memory';
}
export function isPostgresMode() {
    return getPersistenceMode() === 'postgres';
}
//# sourceMappingURL=persistence.js.map