"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createProvider = createProvider;
const clickup_1 = require("./clickup");
const jira_1 = require("./jira");
const linear_1 = require("./linear");
const local_1 = require("./local");
const monday_1 = require("./monday");
const notion_1 = require("./notion");
const trello_1 = require("./trello");
function createProvider(config, mode) {
    switch (config.provider.toLowerCase()) {
        case 'clickup':
            return new clickup_1.ClickUpProvider(config);
        case 'jira':
            return new jira_1.JiraProvider(config);
        case 'linear':
            return new linear_1.LinearProvider(config);
        case 'local':
            return new local_1.LocalProvider(process.cwd(), mode || 'code');
        case 'monday':
            return new monday_1.MondayProvider(config);
        case 'notion':
            return new notion_1.NotionProvider(config);
        case 'trello':
            return new trello_1.TrelloProvider(config);
        default:
            throw new Error(`Unknown provider: ${config.provider}`);
    }
}
//# sourceMappingURL=index.js.map