Angular 7

Non - angular 7.
In the file “app.module.ts”
@NgModule ->
What is the difference between “declarations” and “imports”, and when to use?

Please give me some practical examples. I thank you.