import type { ExceptionEntry, Profile } from '../interfaces/profile.interface.js'; import type { TagSeverity } from './profiler-tag.interface.js'; import type { TaggableEntry } from './taggable-collector.interface.js'; export declare function unhandledExceptions(profile: Profile): ExceptionEntry[]; export interface ProfileErrorInfo { readonly type: string; readonly statusCode?: number; readonly exceptions: readonly ExceptionEntry[]; readonly profile: Profile; } export interface ProfilerErrorOptions { readonly httpStatus?: number | ((statusCode: number) => boolean) | false; readonly codes?: readonly string[]; readonly exceptions?: boolean | readonly string[] | ((exception: ExceptionEntry) => boolean); readonly classify?: (info: ProfileErrorInfo) => boolean | undefined; readonly severity?: TagSeverity; } export interface EntryErrorOptions { readonly httpStatus?: number | ((statusCode: number) => boolean) | false; readonly classify?: (entry: TaggableEntry) => boolean | undefined; readonly severity?: TagSeverity; } export declare function resolveProfileErrorClassifier(options?: ProfilerErrorOptions, defaults?: ProfilerErrorOptions): (profile: Profile) => boolean; export declare function resolveErrorSeverity(options?: { severity?: TagSeverity; }, defaults?: { severity?: TagSeverity; }): TagSeverity; export declare function resolveEntryErrorClassifier(options?: EntryErrorOptions): (entry: TaggableEntry) => boolean;