import { InferContract } from '@spfn/core';
import { rotateKeyContract } 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 RotateKeyResponse = InferContract<typeof rotateKeyContract>['response'];
type RotateKeyBody = InferContract<typeof rotateKeyContract>['body'];
/**
 * POST /_auth/keys/rotate
 */
declare const rotateKey: (options: {
    body: RotateKeyBody;
}) => Promise<{
    success: false;
    error: {
        details?: any;
        message: string;
        code: string;
    };
} | {
    message?: string | undefined;
    success: true;
    data: {
        success: boolean;
        keyId: string;
    };
}>;

export { type RotateKeyBody, type RotateKeyResponse, rotateKey };
