/** 业务码：1000 成功 */
export declare const RES_CODE: {
    readonly SUCCESS: 1000;
    readonly ERROR: 1001;
};
export type ResCode = (typeof RES_CODE)[keyof typeof RES_CODE];
export type ApiSuccess<T = unknown> = {
    code: typeof RES_CODE.SUCCESS;
    message: string;
    data: T;
};
export type ApiFail = {
    code: number;
    message: string;
};
export type ApiResult<T = unknown> = ApiSuccess<T> | ApiFail;
/**
 * 控制器基类
 *
 * - `ok(data)` → `{ code: 1000, message: 'success', data }`
 * - `fail(message, code?)` → `{ code, message }`
 * - 成功响应内 Date / *Time|*Date|*At 自动格式化为 `YYYY-MM-DD HH:mm:ss`
 */
export declare class BaseController {
    ok<T = unknown>(data?: T): ApiSuccess<T | null>;
    fail(message?: string, code?: number): ApiFail;
    /** 返回 Excel 文件下载响应 */
    excel(buffer: Uint8Array, filename?: string): Response;
}
