import { ActionRejectedPayload } from '../_contract/event-payloads/action-rejected/action-rejected-payload'; /** * Registers a listener for the event from Struct PIM where an action has been rejected. * Called whenever the host rejects an action that is not supported for the current extension point type. * * The callback receives a {@link ActionRejectedPayload} containing the rejected action type and a reason string * explaining why it was rejected. For example, calling resizeContainer from a Widget extension point * will trigger this event since Widget sizing is controlled by the dashboard grid. * * @example * ```ts * struct.events.onActionRejectedEvent((payload) => { * console.warn(`Action "${payload.rejectedAction}" rejected: ${payload.reason}`); * }); * ``` */ export declare function onActionRejectedEvent(callback: (payload: ActionRejectedPayload) => void): () => void; //# sourceMappingURL=on-action-rejected-event.d.ts.map