/**
 * Auto-Link Helper — shared logic for creating providers for auto-link
 *
 * Provides a helper to instantiate an ExternalProvider from the settings service
 * for use in auto-linking newly created tasks. Used by both the CLI `sf task create`
 * command and the workflow/playbook instantiation route.
 */
import type { ExternalProvider } from '@stoneforge/core';
import type { GlobalOptions } from '../types.js';
/**
 * Result of attempting to create a provider for auto-linking.
 */
export interface AutoLinkProviderResult {
    /** The provider instance (only set on success) */
    provider?: ExternalProvider;
    /** The project to create issues in (only set on success) */
    project?: string;
    /** Error message (only set on failure) */
    error?: string;
}
/**
 * Try to create an ExternalProvider for auto-linking.
 *
 * Reads the provider settings (token, defaultProject) from the settings service,
 * then creates the appropriate provider instance. Returns the provider and project
 * on success, or an error message on failure.
 *
 * @param providerName - The provider to create (e.g., 'github', 'linear')
 * @param options - CLI global options (used to resolve the database path)
 * @returns Result with provider and project, or error
 */
export declare function tryCreateProviderForAutoLink(providerName: string, options: GlobalOptions): Promise<AutoLinkProviderResult>;
//# sourceMappingURL=auto-link-helper.d.ts.map