import { DocumentNode } from "@the-draupnir-project/interface-manager";
import { StringRoomID } from "@the-draupnir-project/matrix-basic-types";
import { RoomMessageSender, RoomUpdateError } from "matrix-protection-suite";
import { Result } from "@gnuxie/typescript-result";
/**
 * Render a message to show to the user after taking an action in a room or a set of rooms.
 * @param client A matrix client.
 * @param errors Any errors associated with the action.
 * @param options.title To give context about what the action was, shown when there are errors.
 * @param options.noErrorsText To show when there are no errors.
 * @param options.skipNoErrors is ineffective and does nothing, it is an option for the accompnying `printActionResult`.
 * @returns A `DocumentNode` fragment that can be sent to Matrix or incorperated into another message.
 */
export declare function renderActionResult(errors: RoomUpdateError[], { title, noErrorsText, }?: {
    title?: string;
    noErrorsText?: string;
}): Promise<DocumentNode>;
/**
 * Render a message to represent the outcome of an action in an update.
 * @param client A matrix client to send a notice with.
 * @param roomID The room to send the notice to.
 * @param errors Any errors that are a result of the action.
 * @param options.title To give context about what the action was, shown when there are errors.
 * @param options.noErrorsText To show when there are no errors.
 * @returns
 */
export declare function printActionResult(messageSender: RoomMessageSender, roomID: StringRoomID, errors: RoomUpdateError[], renderOptions?: {
    title?: string;
    noErrorsText?: string;
}): Promise<Result<void>>;
//# sourceMappingURL=RoomUpdateError.d.ts.map