import { Env } from "../../client/index.js"; import { MessageResponse } from "../index.js"; import { APIInteractionResponseChannelMessageWithSource, APIInteractionResponseDeferredChannelMessageWithSource, APIModalSubmitInteraction } from "discord-api-types/v10"; export declare type ModalResponseUnion = MessageResponse | APIInteractionResponseChannelMessageWithSource | APIInteractionResponseDeferredChannelMessageWithSource; export declare type ModalExecutor = (modal: APIModalSubmitInteraction, env: Env) => ModalResponseUnion | Promise; export interface ModalHandlerOptions { customId?: string; executor?: ModalExecutor; } export declare class ModalHandler { customId: string; executor: ModalExecutor | undefined; constructor(options?: ModalHandlerOptions); setCustomId(customId: string): this; setExecutor(executor: ModalExecutor): this; }