export const SYNCULAR_DEFAULT_STORAGE = 'opfsSahPool';
export const SYNCULAR_LOCAL_DISABLED_BASE_URL = 'syncular-local://disabled';
export function resolveSyncularClientConfig(config) {
    const mode = config.mode ?? 'remote';
    if (mode === 'remote' && !config.baseUrl) {
        throw new Error('Syncular remote clients require config.baseUrl');
    }
    return {
        ...config,
        mode,
        baseUrl: config.baseUrl ?? SYNCULAR_LOCAL_DISABLED_BASE_URL,
        storage: config.storage ?? SYNCULAR_DEFAULT_STORAGE,
    };
}
export function isSyncularRemoteMode(config) {
    return config.mode === 'remote';
}
//# sourceMappingURL=client-config.js.map