/*!
 * Copyright (C) Microsoft Corporation. All rights reserved.
 */
import type { AppMetadata, ConnectionReference, Environment, ParameterHint } from '../types/AppMetadata.js';
import type { ConnectionInstance } from '../types/ConnectionTypes.js';
import type { UserConsent } from '../types/ConsentTypes.js';
import type { ConnectorsApi } from './api/ConnectorsApi.js';
import type { IConnectionService } from './IConnectionService.js';
/** Default connection service that delegates HTTP calls to ConnectorsApi. */
export declare class ConnectionService implements IConnectionService {
    private readonly api;
    constructor(api: ConnectorsApi);
    saveUserConsents(appName: string, consents: UserConsent[]): Promise<void>;
    getConnectionConsent(connection: ConnectionInstance, options?: {
        disableManualLogin?: boolean;
    }): Promise<void>;
    isSsoAuthValid(connection: ConnectionInstance): boolean;
    getConnectionById(connectionId: string, _bypassCache?: boolean): Promise<ConnectionInstance | null>;
    testConnection(connection: ConnectionInstance): Promise<void>;
    getConnection(connectionName: string, _apiId: string): Promise<ConnectionInstance>;
    createCompositeConnection(apiId: string, environment: Environment, dependencyTable: Record<string, string>, parameterHints: Record<string, ParameterHint>, connectionName?: string): Promise<string | ConnectionInstance>;
    saveConnectionUsage(apiShortName: string, connectionName: string, environmentName: string, reference: string, resourceId: string, appActions: string[]): Promise<void>;
    runDisambiguationRules(missingConnections: Record<string, ConnectionReference>, _appMetadata: AppMetadata, _appName?: string): Promise<Record<string, ConnectionReference>>;
}
//# sourceMappingURL=ConnectionService.d.ts.map