export interface IMethodsPath { subName: string; localName: string; value: any; } /** * Given an AST, this function tries to find the exported component definition. * * The component definition is either the ObjectExpression passed to * `React.createClass` or a `class` definition extending `React.Component` or * having a `render()` method. * * If a definition is part of the following statements, it is considered to be * exported: * * modules.exports = Definition; * exports.foo = Definition; * export default Definition; * export var Definition = ...; */ export default function findAllExportedComponentDefinition(ast: any): any[];