import type { EntityManager } from '@n8n/typeorm'; export type UserConnection = { accountIdentifier?: string; }; export interface ICredentialConnectionStatusProvider { findMyConnections(userId: string, credentialIds: string[]): Promise>; countConnectedUsers(credentialId: string): Promise; deleteAllUserEntries(credentialId: string, em?: EntityManager): Promise; cleanupOrphanedEntriesForUsers(userIds: string[], em?: EntityManager, credentialId?: string): Promise; cleanupOrphanedEntriesForProjects(credentialId: string, projectIds: string[], em?: EntityManager): Promise; }