import type { ApplicationErrorContext } from "../../../src/observability/application-error-contract.js"; export declare const DEFAULT_FINGERPRINT = "{{ default }}"; export type SentryPolicyScope = { setContext(name: string, context: Record): void; setFingerprint(fingerprint: string[]): void; setLevel?(level: "error" | "warning"): void; setTag(key: string, value: string): void; }; export type SentryPolicySdk = { captureException(error: unknown): string; flush(timeoutMs?: number): Promise; withScope(callback: (scope: SentryPolicyScope) => void): void; }; export type SentryPolicyEvent = { breadcrumbs?: unknown; exception?: { values?: Array<{ type?: string; value?: string; stacktrace?: { frames?: Array<{ abs_path?: string; filename?: string; }>; }; }>; }; fingerprint?: string[]; logentry?: { message?: string; }; message?: string; request?: unknown; tags?: Record; type?: undefined; user?: unknown; }; export declare function captureWithSentryPolicy(sdk: SentryPolicySdk, serviceName: string, error: unknown, context: ApplicationErrorContext): string | undefined; export declare function flushWithSentryPolicy(sdk: Pick, timeoutMs?: number): Promise; export declare function applySentryScopePolicy(scope: SentryPolicyScope, serviceName: string, context: ApplicationErrorContext): void; export declare function prepareSentryEvent(event: TEvent, serviceName: string): TEvent & SentryPolicyEvent; export declare function redactSensitiveText(value: string): string; export declare function sanitizeApplicationErrorAttributes(attributes: Record): Record; export declare function sanitizeStackFramePath(value: string): string; //# sourceMappingURL=policy.d.ts.map