import type { PlatformError } from '@effect/platform/Error'; import type { FileSystem } from '@effect/platform/FileSystem'; import { Effect } from 'effect'; import { type Cause } from 'effect/Cause'; import type { JsonParsingError } from './dependencies/fs/index.js'; import { type ErrorLocation, type ErrorRelatedSources } from './source-maps/index.js'; import type { ErrorSpan } from './types/index.js'; export interface ErrorData { errorType: unknown; message: unknown; stack: string[] | undefined; sources: Omit[] | undefined; location: Omit[] | undefined; spans: ErrorSpan[] | undefined; isPlainString: boolean; } export interface CapturedErrors { interrupted: boolean; errors: ErrorData[]; } export declare const captureErrors: (cause: Cause, stripCwd?: boolean) => Effect.Effect;