import * as defs from "../../forms/FormDefinition";
import { IActivityHandler, IActivityContext, Deferrable, EmptyOutputs } from "../../IActivityHandler";
import { DisplayFormOutputs } from "./DisplayForm";
export interface SetFormElementErrorInputs {
    form: DisplayFormOutputs;
    /** The ID of the form element to apply the error to. */
    elementName?: string | defs.Element;
    /** The error message to apply to the form element. */
    error: string;
    /** Controls when strings are interpreted as markdown. */
    markdown?: boolean;
}
export declare class SetFormElementError implements IActivityHandler {
    static action: string;
    static suite: string;
    execute(inputs: SetFormElementErrorInputs, context: IActivityContext): Deferrable<EmptyOutputs>;
}
