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

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

type RegisterResponse = InferContract<typeof registerContract>['response'];
type RegisterBody = InferContract<typeof registerContract>['body'];
/**
 * POST /_auth/register
 */
declare const register: (options: {
    body: RegisterBody;
}) => Promise<{
    success: false;
    error: {
        details?: any;
        message: string;
        code: string;
    };
} | {
    message?: string | undefined;
    success: true;
    data: {
        email?: string | undefined;
        phone?: string | undefined;
        userId: string;
    };
}>;

export { type RegisterBody, type RegisterResponse, register };
