/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */importtype{Config,TestResult}from'@jest/types';importtype{Frame}from'./types';exporttype{Frame}from'./types';exportdeclaretypeStackTraceConfig=Pick<Config.ProjectConfig,'rootDir'|'testMatch'>;exportdeclaretypeStackTraceOptions={noStackTrace:boolean;noCodeFrame?:boolean;};exportdeclareconstformatExecError:(error:string|Error|TestResult.SerializableError|undefined,config:Pick<Config.ProjectConfig,"rootDir"|"testMatch">,options:StackTraceOptions,testPath?:string|undefined,reuseMessage?:boolean|undefined)=>string;exportdeclareconstgetStackTraceLines:(stack:string,options?:StackTraceOptions)=>string[];exportdeclareconstgetTopFrame:(lines:string[])=>Frame|null;exportdeclareconstformatStackTrace:(stack:string,config:Pick<Config.ProjectConfig,"rootDir"|"testMatch">,options:StackTraceOptions,testPath?:string|undefined)=>string;exportdeclareconstformatResultsErrors:(testResults:TestResult.AssertionResult[],config:Pick<Config.ProjectConfig,"rootDir"|"testMatch">,options:StackTraceOptions,testPath?:string|undefined)=>string|null;exportdeclareconstseparateMessageFromStack:(content:string)=>{message:string;stack:string;};