/**
 * 自定义业务错误基类
 * 用于 Service 层抛出结构化错误，Route 层统一捕获并响应
 */
export declare class ServiceError extends Error {
    readonly code: string;
    readonly statusCode: number;
    constructor(message: string, code: string, statusCode?: number);
}
/** 资源未找到 */
export declare class NotFoundError extends ServiceError {
    constructor(resource: string, id: string);
}
/** 数据校验失败 */
export declare class ValidationError extends ServiceError {
    constructor(message: string);
}
/** 状态流转非法 */
export declare class InvalidStateTransitionError extends ServiceError {
    constructor(from: string, to: string);
}
//# sourceMappingURL=errors.d.ts.map