import { InferContract } from '@spfn/core';
import { verifyCodeContract } 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 VerifyCodeResponse = InferContract<typeof verifyCodeContract>['response'];
type VerifyCodeBody = InferContract<typeof verifyCodeContract>['body'];
/**
 * POST /_auth/codes/verify
 */
declare const verifyCode: (options: {
    body: VerifyCodeBody;
}) => Promise<{
    success: false;
    error: {
        details?: any;
        message: string;
        code: string;
    };
} | {
    message?: string | undefined;
    success: true;
    data: {
        verificationToken?: string | undefined;
        valid: boolean;
    };
}>;

export { type VerifyCodeBody, type VerifyCodeResponse, verifyCode };
