> ## Documentation Index
> Fetch the complete documentation index at: https://codegeninc-codegen-bot-sdk-docs-2-0.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# API Reference

Welcome to the Codegen API reference. This documentation covers the core classes and functions available in Codegen.

## Core Classes

<CardGroup cols={2}>
  <Card title="Codebase" icon="code" href="/api-reference/core/Codebase">
    The main entry point for analyzing and transforming code. Provides access to
    files, functions, and the call graph.
  </Card>

  <Card title="File" icon="file-code" href="/api-reference/core/File">
    Work with source files, their ASTs, and manage imports/exports.
  </Card>

  <Card title="Function" icon="function" href="/api-reference/core/Function">
    Represents a function in your codebase. Analyze parameters, return types,
    and call sites.
  </Card>

  <Card title="Symbol" icon="diagram-project" href="/api-reference/core/Symbol">
    Represents a symbol in your codebase, includes functions, classes, and more.
  </Card>
</CardGroup>

## Language Support

<CardGroup cols={2}>
  <Card title="Python" icon="python" href="/api-reference/python">
    Python-specific APIs and utilities for working with Python codebases.
  </Card>

  <Card title="TypeScript" icon="js" href="/api-reference/typescript">
    TypeScript and JavaScript support, including React component analysis.
  </Card>
</CardGroup>

## Common Operations

### Code Analysis

* [Finding Functions](/api-reference/core/Codebase#get-function)
* [Analyzing Dependencies](/api-reference/core/Symbol#dependencies)
* [Analyzing Usages](/api-reference/core/Symbol#usages)

### Code Transformation

* [Editing Files](/api-reference/core/File#edit)
* [Managing Imports](/api-reference/core/SourceFile#add-import-from-import-string)
* [Renaming Symbols](/api-reference/core/Symbol#set-name)
* [Managing Return Types](/api-reference/core/Function#set-return-type)
* [Moving Code](/api-reference/core/Symbol#move-to-file)

### React & TypeScript

* [JSX Components](/api-reference/typescript/JSXElement)
* [Props & State](/api-reference/typescript/JSXProp)
* [Type Aliases](/api-reference/typescript/TSTypeAlias)

<Note>
  Each class and function includes detailed examples and common use cases. Use
  the sidebar navigation to explore specific APIs.
</Note>

## Getting Started

If you're new to Codegen, we recommend:

1. Following the [Getting Started](/introduction/getting-started) guide
2. Exploring the [Tutorials](/tutorials/at-a-glance)
3. Looking at example codemods in our [GitHub repository](https://github.com/codegen-sh/codegen-sdk/tree/main/examples)

<Tip>
  Use the search bar (⌘ K) to quickly find specific APIs and functionality.
</Tip>
