import { InferContract } from '@spfn/core';
import { cancelInvitationContract } 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 CancelInvitationResponse = InferContract<typeof cancelInvitationContract>['response'];
type CancelInvitationBody = InferContract<typeof cancelInvitationContract>['body'];
/**
 * POST /_auth/invitations/cancel
 */
declare const cancelInvitation: (options: {
    body: CancelInvitationBody;
}) => Promise<{
    success: false;
    error: {
        details?: any;
        message: string;
        code: string;
    };
} | {
    message?: string | undefined;
    success: true;
    data: {
        success: boolean;
        cancelledAt: string;
    };
}>;

export { type CancelInvitationBody, type CancelInvitationResponse, cancelInvitation };
