/** Message type literal used to identify our popup results. */
export declare const OAUTH_POPUP_MESSAGE_TYPE: "executor:oauth-result";
export type OAuthPopupResult<TAuth> = ({
    readonly type: typeof OAUTH_POPUP_MESSAGE_TYPE;
    readonly ok: true;
    readonly sessionId: string;
} & TAuth) | {
    readonly type: typeof OAUTH_POPUP_MESSAGE_TYPE;
    readonly ok: false;
    readonly sessionId: string | null;
    /** Short user-facing summary. */
    readonly error: string;
    /** Full technical detail. Omitted when identical to `error`. */
    readonly errorDetails?: string;
};
export declare const isOAuthPopupResult: <TAuth>(value: unknown) => value is OAuthPopupResult<TAuth>;
//# sourceMappingURL=oauth-popup-types.d.ts.map