import type { Event, StackFrame } from '@sentry/core'; export declare const MAX_CONTEXTLINES_COLNO: number; export declare const MAX_CONTEXTLINES_LINENO: number; interface ContextLinesOptions { /** * Sets the number of context lines for each frame when loading a file. * Defaults to `dataCollection.frameContextLines` (5). * * Set to 0 to disable loading and inclusion of source files. * * When set, this option takes precedence over `dataCollection.frameContextLines`. **/ frameContextLines?: number; } /** * Exported for testing purposes. */ export declare function resetFileContentCache(): void; /** * Resolves context lines before and after the given line number and appends them to the frame; */ export declare function addContextToFrame(lineno: number, frame: StackFrame, contextLines: number, contents: Record | undefined): void; /** Exported only for tests, as a type-safe variant. */ export declare const _contextLinesIntegration: (options?: ContextLinesOptions) => { name: "ContextLines"; processEvent(event: Event, _hint: import("@sentry/core").EventHint, client: import("@sentry/core").Client>): Promise; }; /** * Capture the lines before and after the frame's context. */ export declare const contextLinesIntegration: (options?: ContextLinesOptions | undefined) => import("@sentry/core").Integration & { name: "ContextLines"; }; export {}; //# sourceMappingURL=contextlines.d.ts.map