import type { PlatformError } from '@effect/platform/Error'; import { FileSystem } from '@effect/platform/FileSystem'; import { Effect } from 'effect'; import { type JsonParsingError } from './../dependencies/fs/index.js'; import type { ErrorLocation } from './get-error-location-from-file-path.js'; import { type SourceCode } from './get-source-code.js'; export interface ErrorRelatedSources { _tag: 'sources'; name: string; source: SourceCode[]; runPath: string; sourcesPath: string | undefined; } export interface RawErrorLocation extends ErrorLocation { _tag: 'location'; name: string; } export declare const getSourcesFromMapFile: (name: string, location: ErrorLocation) => Effect.Effect;