import type { SourceConnectionStore } from './store';
import type { SourceRefPage, SourceRepository, SourceWebhook } from './types';
export declare function testSourceConnection(sources: SourceConnectionStore, connectionId: string, repositoryId?: string): Promise<ReturnType<SourceConnectionStore['updateHealth']>>;
export declare function syncSourceRepositories(sources: SourceConnectionStore, connectionId: string, input?: {
    search?: string;
    maxPages?: number;
}): Promise<SourceRepository[]>;
export declare function listSourceReferences(sources: SourceConnectionStore, input: {
    connectionId: string;
    repository: string;
    repositoryId?: string;
    type: 'branches' | 'tags';
    cursor?: string;
    limit?: number;
    deployKeyId?: string;
}): Promise<SourceRefPage>;
export declare function reconcileSourceWebhook(sources: SourceConnectionStore, webhookId: string, baseUrl: string): Promise<SourceWebhook>;
export declare function removeSourceWebhook(sources: SourceConnectionStore, webhookId: string): Promise<SourceWebhook>;
