• Retrieves sync configuration, using defaults if not found.

    Returns SyncConfig

    The saved sync configuration or default.

    export function getSyncConfig(): SyncConfig {
    try {
    const config = storage.getItem(STORAGE_KEYS.SYNC_CONFIG);
    return config ? JSON.parse(config) : DEFAULT_SYNC_CONFIG;
    } catch (error) {
    console.error("[Storage] Error retrieving sync config from storage", error);
    return DEFAULT_SYNC_CONFIG;
    }
    }