import type { Context as Context, NextFunction } from '@mwcp/share'; import type { TraceService } from '../../lib/index.js'; /** * Catch and sample top exception if __isTraced is false or undefined, * ex will NOT be thrown again */ export declare function handleTopExceptionAndNext(ctx: Context, traceSvc: TraceService, next: NextFunction): Promise; /** * Catch and sample exception, * re-throw ex */ export declare function handleAppExceptionAndNext(webCtx: Context, traceSvc: TraceService, next: NextFunction): Promise;