···51515252The first namespace in the file will be turned into JSON. However, you can put more of them in the same file (if you want to reference them) or `import` other `.tsp` files from it.
53535454-(Currently, we're assuming you write everything in typelex. You can grab common Lexicons from the [Playground](https://playground.typelex.org/)). It should not be hard to also stub out dependencies with namespaces + empty defs, or to add special syntax for a ref (which isn't availeble to resolve). For now, I haven't done that. This needs more thought.)
5454+## Dependencies
5555+5656+You can `import` other `.tsp` files.
5757+5858+For now, we're assuming you write everything in typelex. You can grab common Lexicons from the [Playground](https://playground.typelex.org/). However, if you just want a ref, you could stub out any external Lexicon, like this:
5959+6060+```
6161+/** Some docstring */
6262+namespace com.example.defs {
6363+ subject: com.atproto.repo.strongRef.Main; // OK to use here
6464+}
6565+6666+// This is a stub
6767+namespace com.atproto.repo.strongRef {
6868+ model Main { }
6969+}
7070+```
7171+7272+Maybe this should be more ergonomic. I haven't tried this in a real project so I don't know what workflows are good.
55735674## Top-Level Lexicon Types
5775