import { Integration, IntegrationConnection } from "../../database/types/entity.types";
import { IntegrationRegistry } from './registry/integration-registry';
import { IntegrationRepo } from './repos/integration.repo';
import { IntegrationConnectionRepo } from './repos/integration-connection.repo';
import { OAuthService } from './oauth/oauth.service';
import { UnfurlNeedsConnection } from './registry/integration-provider.interface';
export declare class IntegrationNotInstalledError extends Error {
    constructor(type: string);
}
export declare class IntegrationNeedsConnectionError extends Error {
    readonly details: UnfurlNeedsConnection;
    constructor(details: UnfurlNeedsConnection);
}
export type UserIntegrationAccess = {
    integration: Integration;
    connection: IntegrationConnection;
    accessToken: string;
};
export declare class IntegrationAccessService {
    private readonly registry;
    private readonly integrationRepo;
    private readonly connectionRepo;
    private readonly oauthService;
    constructor(registry: IntegrationRegistry, integrationRepo: IntegrationRepo, connectionRepo: IntegrationConnectionRepo, oauthService: OAuthService);
    getUserAccess(type: string, userId: string, workspaceId: string): Promise<UserIntegrationAccess>;
    invalidateConnection(connection: IntegrationConnection): Promise<void>;
    private needsConnection;
}
