/**
 * External Sync Helpers
 *
 * Shared provider instantiation logic for external sync routes and
 * task creation auto-link. Avoids duplicating the provider registry
 * setup and configuration reading across route modules.
 */
import type { ExternalProvider, ProviderConfig } from '@stoneforge/core';
import type { SettingsService } from '../../services/settings-service.js';
/**
 * Create a configured ExternalProvider instance from settings.
 *
 * Reads the provider's token, apiBaseUrl, and defaultProject from
 * the settings service and creates the appropriate provider implementation.
 *
 * @param providerName - The provider to instantiate (e.g., 'github', 'linear')
 * @param settingsService - Settings service to read provider configuration
 * @returns The configured provider and its config, or undefined if not configured
 */
export declare function createConfiguredProvider(providerName: string, settingsService: SettingsService): {
    provider: ExternalProvider;
    config: ProviderConfig;
} | undefined;
//# sourceMappingURL=external-sync-helpers.d.ts.map