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

type CheckAccountExistsResponse = InferContract<typeof checkAccountExistsContract>['response'];
type CheckAccountExistsBody = InferContract<typeof checkAccountExistsContract>['body'];
/**
 * POST /_auth/exists
 */
declare const checkAccountExists: (options: {
    body: CheckAccountExistsBody;
}) => Promise<{
    success: false;
    error: {
        details?: any;
        message: string;
        code: string;
    };
} | {
    message?: string | undefined;
    success: true;
    data: {
        exists: boolean;
        identifier: string;
        identifierType: "email" | "phone";
    };
}>;

export { type CheckAccountExistsBody, type CheckAccountExistsResponse, checkAccountExists };
