import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { IvschatClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../IvschatClient"; import type { DeleteMessageRequest, DeleteMessageResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteMessageCommand}. */ export interface DeleteMessageCommandInput extends DeleteMessageRequest { } /** * @public * * The output of {@link DeleteMessageCommand}. */ export interface DeleteMessageCommandOutput extends DeleteMessageResponse, __MetadataBearer { } declare const DeleteMessageCommand_base: { new (input: DeleteMessageCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteMessageCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Sends an event to a specific room which directs clients to delete a specific message; * that is, unrender it from view and delete it from the client’s chat history. This event’s * EventName is aws:DELETE_MESSAGE. This replicates the * DeleteMessage WebSocket operation in the Amazon IVS Chat Messaging API.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { IvschatClient, DeleteMessageCommand } from "@aws-sdk/client-ivschat"; // ES Modules import * // const { IvschatClient, DeleteMessageCommand } = require("@aws-sdk/client-ivschat"); // CommonJS import * // import type { IvschatClientConfig } from "@aws-sdk/client-ivschat"; * const config = {}; // type is IvschatClientConfig * const client = new IvschatClient(config); * const input = { // DeleteMessageRequest * roomIdentifier: "STRING_VALUE", // required * id: "STRING_VALUE", // required * reason: "STRING_VALUE", * }; * const command = new DeleteMessageCommand(input); * const response = await client.send(command); * // { // DeleteMessageResponse * // id: "STRING_VALUE", * // }; * * ``` * * @param DeleteMessageCommandInput - {@link DeleteMessageCommandInput} * @returns {@link DeleteMessageCommandOutput} * @see {@link DeleteMessageCommandInput} for command's `input` shape. * @see {@link DeleteMessageCommandOutput} for command's `response` shape. * @see {@link IvschatClientResolvedConfig | config} for IvschatClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

* * @throws {@link PendingVerification} (client fault) *

* * @throws {@link ResourceNotFoundException} (client fault) *

* * @throws {@link ThrottlingException} (client fault) *

* * @throws {@link ValidationException} (client fault) *

* * @throws {@link IvschatServiceException} *

Base exception class for all service exceptions from Ivschat service.

* * * @public */ export declare class DeleteMessageCommand extends DeleteMessageCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteMessageRequest; output: DeleteMessageResponse; }; sdk: { input: DeleteMessageCommandInput; output: DeleteMessageCommandOutput; }; }; }