{{>header}}

{{#if imports~}}
{{#each imports}}
import type { {{{this}}} } from './{{{this}}}{{>tsExtention}}';
{{/each}}
{{/if~}}

{{#equals export 'interface'}}
{{>exportInterface}}
{{else equals export 'one-of'}}
{{>exportComposition}}
{{else equals export 'any-of'}}
{{>exportComposition}}
{{else equals export 'all-of'}}
{{>exportComposition}}
{{else equals export 'enum'}}
{{#if @root.useUnionTypes}}
{{~>exportType~}}
{{else}}
{{>exportEnum}}
{{/if}}
{{else}}
{{>exportType}}
{{/equals}}
