/** * Source Location Utility * * Error.stack을 파싱하여 소스 파일 위치 정보를 추출합니다. * source-map-support가 설치되어 있으면 자동으로 TS 라인으로 변환됩니다. */ export declare function installSourceMapSupport(): void; /** * 소스 위치 정보 */ export interface SourceLocation { /** 파일 경로 */ file: string; /** 라인 번호 */ line: number; /** 컬럼 번호 */ column?: number; /** 함수 이름 (옵션) */ functionName?: string; } /** * 스택 트레이스에서 특정 깊이의 호출 위치를 추출합니다. * * @param skipFrames 스킵할 스택 프레임 수 (기본값: 2) * - 0: getSourceLocation 자신 * - 1: getSourceLocation을 호출한 함수 * - 2: 실제 로그를 호출한 사용자 코드 * @returns 소스 위치 정보 또는 null */ export declare function getSourceLocation(skipFrames?: number): SourceLocation | null; /** * 모듈 경로를 프로젝트 루트 기준 상대경로로 정규화합니다. * 소스맵이 있으면 TS 경로로 변환합니다. * instrumentation.ts에서 사용 */ export declare function normalizeModulePath(modulePath: string): string; /** * 소스 위치를 문자열로 포맷합니다. * 예: "src/services/user.ts:25" */ export declare function formatSourceLocation(location: SourceLocation | null): string;