import { OnMessageDisplayedOutput } from '../types/outputs'; import { OnMessageDisplayedInput } from '../types/inputs'; /** * Registers a callback that will be invoked on `messageDisplayed` events. * * @deprecated AWS will end support for Amazon Pinpoint on October 30, 2026. * * @param {OnMessageDisplayedInput} input - The input object that holds the callback handler. * @throws validation: {@link InAppMessagingValidationErrorCode} - Thrown when the provided parameters or library * configuration is incorrect, or if In App messaging hasn't been initialized. * @returns {OnMessageDisplayedOutput} - An object that holds a remove method to stop listening to events. * @example * ```ts * onMessageDisplayed((message) => { * // use the message * console.log(message.id); * }); * ``` */ export declare function onMessageDisplayed(input: OnMessageDisplayedInput): OnMessageDisplayedOutput;