import { MessageBuilder } from "@discord-interactions/builders"; import type { APIInteractionResponseChannelMessageWithSource, APIInteractionResponseUpdateMessage, APIMessage, APIModalSubmitInteraction, ModalSubmitComponent } from "discord-api-types/v10"; import { MessageFlags } from "discord-api-types/v10"; import { FormData } from "formdata-node"; import { DiscordApplication, ResponseCallback } from "../DiscordApplication.js"; import { BaseStatefulInteractionContext } from "./Base.js"; import { ModalSubmitResponse } from "./response-types.js"; export declare class ModalSubmitContext extends BaseStatefulInteractionContext { components: Map; parentCommand?: string; constructor(manager: DiscordApplication, interaction: APIModalSubmitInteraction, timestamps: { signature: Date; received: Date; }, responseCallback: ResponseCallback); defer(flags?: MessageFlags): Promise; deferFollowup(flags?: MessageFlags): Promise; /** * Note: This is only supported when replying to a component interaction. */ deferUpdate(): Promise; reply(message: string | MessageBuilder | APIInteractionResponseChannelMessageWithSource | FormData): Promise; replyFollowup(message: string | MessageBuilder | APIInteractionResponseChannelMessageWithSource | FormData): Promise; /** * Note: This is only supported when replying to a component interaction. */ replyUpdate(message: string | MessageBuilder | APIInteractionResponseUpdateMessage | FormData): Promise; send(message: string | MessageBuilder): Promise; edit(message: string | MessageBuilder): Promise; delete(): Promise; }