/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import type { StackFrame as StackFrameType } from '../utils/stack-frame.js'; import type { ErrorLocation } from '../utils/parseCompileError.js'; interface Props { frame: StackFrameType; contextSize: number; critical: boolean; showCode: boolean; editorHandler: (errorLoc: ErrorLocation) => void; } interface State { compiled: boolean; } declare class StackFrame extends Component { state: State; toggleCompiled: () => void; getErrorLocation(): ErrorLocation | null; editorHandler: () => void; onKeyDown: React.KeyboardEventHandler; render(): React.JSX.Element; } export default StackFrame;