import { ApiError } from '@playcademy/api-core/errors';
import type { Context } from 'hono';
/**
 * Create a standardized error response that matches the API contract
 */
export declare function createErrorResponse(error: ApiError): {
    error: {
        code: string;
        message: string;
        details: unknown;
    };
};
/**
 * Create a standardized error response for unknown errors
 */
export declare function createUnknownErrorResponse(error: unknown): {
    error: {
        code: string;
        message: string;
    };
};
export declare function handleApiError(c: Context, error: unknown): Response;
