import ts from 'typescript'; /** * Finds the return statement in the body of a function * * @param node - The function body node * @returns The return statement if found, otherwise undefined */ export declare function getReturnStatement(node: ts.Block | undefined): ts.ReturnStatement | undefined; /** * Checks whether the node is an arrow function * * For example: * * const foo = () => {...} * * @param node - The node to check * @returns True if the node is an arrow function */ export declare function isArrowFunction(node: ts.Node | undefined): node is ts.ArrowFunction; /** * Checks whether the node is a function expression. * * For example: * * const foo = function() { ... } * * @param node - The node to check * @returns True if the node is a function expression */ export declare function isFunctionExpression(node: ts.Node | undefined): node is ts.FunctionExpression; /** * Checks if the node is a function like * * For example: * * function name(...) { ... } * const name = (...) => { ... } * const name = function(...) { ... } * * @param node - The node to check * @returns True if the node is a function like node */ export declare function isFunctionDeclaration(node: ts.Node): node is ts.FunctionDeclaration | ts.VariableStatement; //# sourceMappingURL=function.d.ts.map