import type { PluginMiddlewareDenialMetadata } from '../../client/plugins/types'; import { type PermissionStrings } from '../../common'; import { ApplicationCommandType, type ApplicationIntegrationType, type EntryPointCommandHandlerType, type InteractionContextType, type LocaleString } from '../../types'; import type { ResolvedRegisteredMiddlewares } from '../decorators'; import type { EntryPointContext } from './entrycontext'; import type { ExtraProps, UsingClient } from './shared'; export declare abstract class EntryPointCommand { middlewares: readonly (keyof ResolvedRegisteredMiddlewares)[]; __filePath?: string; __t?: { name: string | undefined; description: string | undefined; }; name: string; type: ApplicationCommandType; nsfw?: boolean; integrationTypes: ApplicationIntegrationType[]; contexts: InteractionContextType[]; description: string; botPermissions?: bigint; dm?: boolean; handler: EntryPointCommandHandlerType; name_localizations?: Partial>; description_localizations?: Partial>; props: ExtraProps; toJSON(): { handler: EntryPointCommandHandlerType; name: string; type: ApplicationCommandType; nsfw: boolean | undefined; default_member_permissions: null; guild_id: null; description: string; name_localizations: Partial> | undefined; description_localizations: Partial> | undefined; dm_permission: boolean | undefined; contexts: InteractionContextType[]; integration_types: ApplicationIntegrationType[]; }; reload(): Promise; onBeforeMiddlewares?(context: EntryPointContext): any; abstract run?(context: EntryPointContext): any; onAfterRun?(context: EntryPointContext, error: unknown | undefined): any; onRunError(context: EntryPointContext, error: unknown): any; onMiddlewaresError(context: EntryPointContext, error: string, _metadata: PluginMiddlewareDenialMetadata): any; onBotPermissionsFail(context: EntryPointContext, permissions: PermissionStrings): any; onInternalError(client: UsingClient, command: EntryPointCommand, error?: unknown): any; }