import { Value, type ObjectValue, type UndefinedValue } from '../value.mts'; import { captureStack } from '../utils/stack.mts'; import { type CallSite, CallFrame } from '../utils/stack.mts'; import { Realm, type PlainEvaluator } from '#self'; export interface ErrorObject extends ObjectValue { ErrorData: never; /** Show a clickable stack in the devtools */ HostDefinedStack: readonly (CallSite | CallFrame)[] | UndefinedValue; /** Show an error message that allows ECMAScript values to be interleaved with host error messages in the devtools */ HostDefinedMessage: readonly (string | Value)[] | UndefinedValue; HostDefinedFormattedStack: string | UndefinedValue; HostDefinedMessageString: string | UndefinedValue; } export declare const ErrorHostInternalSlots: readonly ["HostDefinedStack", "HostDefinedMessage", "HostDefinedFormattedStack", "HostDefinedMessageString"]; export declare function setErrorHostInternalSlot(O: ErrorObject, { nativeStack, stack }: ReturnType, errorStringPredefined?: string): PlainEvaluator; export { IsError as isErrorObject } from '../abstract-ops/error-objects.mts'; export declare function bootstrapError(realmRec: Realm): void; //# sourceMappingURL=Error.d.mts.map