import { Effect } from 'effect'; import type { PrettyError } from '../types/pretty-error.type.js'; export declare const transformRawError: (stripCwd?: boolean) => ({ message, stack: maybeStack, span, errorType, isPlainString, }: PrettyError) => Effect.Effect<{ errorType: unknown; message: unknown; stack: string[] | undefined; sources: { name: string; source: import("./get-source-code.js").SourceCode[]; runPath: string; sourcesPath: string | undefined; }[] | undefined; location: { name: string; filePath: string; line: number; column: number; }[] | undefined; spans: { name: string; attributes: { [k: string]: unknown; }; durationInMilliseconds: number | undefined; startTime: bigint; endTime: bigint | undefined; }[]; isPlainString: boolean; }, import("../dependencies/fs/index.js").JsonParsingError | import("@effect/platform/Error").PlatformError, import("@effect/platform/FileSystem").FileSystem>;