import { InferContract } from '@spfn/core';
import { acceptInvitationContract } from '../contracts/invitation.js';
import '@sinclair/typebox';

/**
 * Auto-generated API Client
 *
 * Generated by @spfn/core codegen
 * DO NOT EDIT MANUALLY
 *
 * @generated 2025-11-09T12:30:02.324Z
 */

type AcceptInvitationResponse = InferContract<typeof acceptInvitationContract>['response'];
type AcceptInvitationBody = InferContract<typeof acceptInvitationContract>['body'];
/**
 * POST /_auth/invitations/accept
 */
declare const acceptInvitation: (options: {
    body: AcceptInvitationBody;
}) => Promise<{
    success: false;
    error: {
        details?: any;
        message: string;
        code: string;
    };
} | {
    message?: string | undefined;
    success: true;
    data: {
        email: string;
        userId: number;
        role: string;
    };
}>;

export { type AcceptInvitationBody, type AcceptInvitationResponse, acceptInvitation };
