import { InferContract } from '@spfn/core';
import { loginContract } 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.322Z
 */

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

export { type LoginBody, type LoginResponse, login };
