import type { User } from '@n8n/db'; import { z } from 'zod'; import { BaseCommand } from '../../commands/base-command'; import { InstalledNodes } from './installed-nodes.entity'; import { InstalledPackages } from './installed-packages.entity'; declare const flagsSchema: z.ZodObject<{ uninstall: z.ZodOptional; package: z.ZodOptional; credential: z.ZodOptional; userId: z.ZodOptional; }, "strip", z.ZodTypeAny, { credential?: string | undefined; uninstall?: boolean | undefined; userId?: string | undefined; package?: string | undefined; }, { credential?: string | undefined; uninstall?: boolean | undefined; userId?: string | undefined; package?: string | undefined; }>; export declare class CommunityNode extends BaseCommand> { run(): Promise; catch(error: Error): Promise; uninstallCredential(credentialType: string, userId: string): Promise; findUserById(userId: string): Promise; findCredentialsByType(credentialType: string): Promise; deleteCredential(user: User, credentialId: string): Promise; uninstallPackage(packageName: string): Promise; pruneDependencies(): Promise; deleteCommunityNode(node: InstalledNodes): Promise; removeCommunityPackage(packageName: string, communityPackage: InstalledPackages): Promise; findCommunityPackage(packageName: string): Promise; } export {};