import type { Protocol } from 'devtools-protocol'; import { ExecutionContext, type ParseNode, Value, NullValue, type FunctionObject } from '#self'; export declare class CallSite { context: ExecutionContext; lastNode: ParseNode | null; nextNode: ParseNode | null; lastCallNode: ParseNode.CallExpression | null; inheritedLastCallNode: ParseNode.CallExpression | null; constructCall: boolean; constructor(context: ExecutionContext); clone(context?: ExecutionContext): CallSite; isTopLevel(): boolean; isConstructCall(): boolean; isAsync(): boolean; isNative(): boolean; static getFunctionName(func: FunctionObject | NullValue): string | null; getFunctionName(): string | null; getSpecifier(): string | null | undefined; getScriptId(): string | undefined; setLocation(node: ParseNode): void; setNextLocation(node: ParseNode): void; setCallLocation(node: ParseNode.CallExpression | null): void; get lineNumber(): number | null; get columnNumber(): number | null; loc(): string; toString(): string; toCallFrame(): Protocol.Runtime.CallFrame | undefined; } export declare class CallFrame { columnNumber: number | undefined; lineNumber: number | undefined; functionName: string | undefined; scriptId: string | undefined; url: string | undefined; toCallFrame(): Protocol.Runtime.CallFrame | undefined; } export declare function getHostDefinedErrorDetails(O: Value): { callStack: readonly (CallFrame | CallSite)[] | undefined; message: readonly (string | Value)[] | undefined; stack: string | undefined; stackGetterValue: string | undefined; }; export declare function getCurrentStack(excludeGlobalStack?: boolean): CallSite[]; export declare function captureStack(): { stack: CallSite[]; nativeStack: string | undefined; }; export declare function callSiteToErrorStack(stack: readonly CallSite[], nativeStack: string | undefined): string; //# sourceMappingURL=stack.d.mts.map