# Types

Discover the content types generated for your slots and components.

The [CLI](/reference/cli/type-generation) generates a typing stub with four interfaces in the `Croct\Content` namespace, whose types you import with [`@phpstan-import-type`](https://phpstan.org/writing-php-code/phpdoc-types#local-type-aliases) and [`@psalm-import-type`](https://psalm.dev/docs/annotating_code/supported_annotations/#psalm-import-type) to annotate your code with the exact shape of each slot and component.

> **Looking for something specific?**
>
> Use the search bar at the top of the page or press `/` to quickly search through the documentation.

Use the summary below to quickly jump to a specific topic:

- [Slots](/reference/sdk/php/api/types/slots): Learn how to reference the content type of a slot.
- [Components](/reference/sdk/php/api/types/components): Learn how to reference the content type of a component.
- [MappedSlots](/reference/sdk/php/api/types/mapped-slots): Learn how to reference slot IDs and the slot content map.
- [MappedComponents](/reference/sdk/php/api/types/mapped-components): Learn how to reference component IDs and the component content map.
