import { LoggerOptions } from './logger';
/**
 * 日志中间件，提供临时修改日志配置的方法
 */
export declare class LoggingMiddleware {
    /**
     * 创建临时日志上下文
     * @param callback 在临时日志配置中执行的回调函数
     * @param options 临时日志配置
     * @returns 回调函数的返回值
     */
    static withContext<T>(callback: () => Promise<T>, options: Partial<LoggerOptions>): Promise<T>;
    /**
     * 在静默日志模式下执行操作
     * @param callback 要执行的操作
     * @returns 回调函数的返回值
     */
    static withSilentLogs<T>(callback: () => Promise<T>): Promise<T>;
    /**
     * 在UI操作上下文中执行操作，临时抑制非错误日志
     * @param callback 要执行的操作
     * @returns 回调函数的返回值
     */
    static withUIContext<T>(callback: () => Promise<T>): Promise<T>;
    /**
     * 在调试模式下执行操作
     * @param callback 要执行的操作
     * @returns 回调函数的返回值
     */
    static withDebugContext<T>(callback: () => Promise<T>): Promise<T>;
}
//# sourceMappingURL=logging.d.ts.map