import { Response } from 'express';
import { ClientAuthResponse } from '../types';
/**
 * Payload sent as a post message after the auth request is complete.
 * If successful then has a valid payload with Auth information else contains an error.
 *
 * @public
 */
export type WebMessageResponse = {
    type: 'authorization_response';
    response: ClientAuthResponse<unknown>;
} | {
    type: 'authorization_response';
    error: Error;
};
/** @public */
export declare function sendWebMessageResponse(res: Response, appOrigin: string, response: WebMessageResponse): void;
