"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createProvider = createProvider;
const google_drive_1 = require("./google-drive");
const onedrive_1 = require("./onedrive");
const dropbox_1 = require("./dropbox");
function createProvider(config) {
    switch (config.type) {
        case 'google-drive':
            return new google_drive_1.GoogleDriveProvider(config);
        case 'onedrive':
            return new onedrive_1.OneDriveProvider(config);
        case 'dropbox':
            return new dropbox_1.DropboxProvider(config);
        default:
            throw new Error(`Unknown provider type: ${config.type}`);
    }
}
//# sourceMappingURL=index.js.map