import type { CredentialTransferPreview } from '@n8n/api-types'; import { LicenseState } from '@n8n/backend-common'; import type { User } from '@n8n/db'; import { CredentialsEntity, SharedCredentials, SharedCredentialsRepository } from '@n8n/db'; import { type EntityManager } from '@n8n/typeorm'; import type { ICredentialDataDecryptedObject } from 'n8n-workflow'; import { ExternalSecretsConfig } from '../modules/external-secrets.ee/external-secrets.config'; import { SecretsProviderAccessCheckService } from '../modules/external-secrets.ee/secret-provider-access-check.service.ee'; import { PolicyEnforcementService } from '../policy/policy-enforcement.service'; import { OwnershipService } from '../services/ownership.service'; import { ProjectService } from '../services/project.service.ee'; import { RoleService, CredentialsFinderService } from '@n8n/backend-services'; import { CredentialConnectionStatusProxy } from './credential-connection-status-proxy'; import { CredentialsService } from './credentials.service'; export declare class EnterpriseCredentialsService { private readonly sharedCredentialsRepository; private readonly ownershipService; private readonly credentialsService; private readonly projectService; private readonly credentialsFinderService; private readonly roleService; private readonly externalSecretsConfig; private readonly externalSecretsProviderAccessCheckService; private readonly licenseState; private readonly connectionStatusProxy; private readonly policyEnforcementService; constructor(sharedCredentialsRepository: SharedCredentialsRepository, ownershipService: OwnershipService, credentialsService: CredentialsService, projectService: ProjectService, credentialsFinderService: CredentialsFinderService, roleService: RoleService, externalSecretsConfig: ExternalSecretsConfig, externalSecretsProviderAccessCheckService: SecretsProviderAccessCheckService, licenseState: LicenseState, connectionStatusProxy: CredentialConnectionStatusProxy, policyEnforcementService: PolicyEnforcementService); shareWithProjects(user: User, credentialId: string, shareWithIds: string[], entityManager?: EntityManager): Promise; getOne(credentialId: string): Promise; getOneForUser(user: User, credentialId: string, includeDecryptedData: boolean): Promise<{ connectedByMe?: boolean; connectedAccountIdentifier?: string; connectedUserCount?: number; id: string; generateId(): void; createdAt: Date; updatedAt: Date; setUpdateDate(): void; name: string; description: string | null; type: string; shared: SharedCredentials[]; isManaged: boolean; isGlobal: boolean; isResolvable: boolean; resolvableAllowFallback: boolean; resolverId: string | null; usageScope: import("@n8n/db").CredentialUsageScope; pendingAuthorizationExpiresAt: Date | null; data: ICredentialDataDecryptedObject; } | { connectedByMe?: boolean; connectedAccountIdentifier?: string; connectedUserCount?: number; id: string; generateId(): void; createdAt: Date; updatedAt: Date; setUpdateDate(): void; name: string; description: string | null; type: string; shared: SharedCredentials[]; isManaged: boolean; isGlobal: boolean; isResolvable: boolean; resolvableAllowFallback: boolean; resolverId: string | null; usageScope: import("@n8n/db").CredentialUsageScope; pendingAuthorizationExpiresAt: Date | null; }>; previewTransfer(user: User, credentialId: string, destinationProjectId: string): Promise; transferOne(user: User, credentialId: string, destinationProjectId: string): Promise; private assertCanTransfer; }