type DefinedTemplate = keyof TemplateProps; type ImportsProps = { exportName: string; importPath: string; }; type TemplateProps = { Index: ImportsProps; NativeComponent: { name: string; props?: Array<{ prop: string; type: string; optional: boolean; }>; additionalImports?: ImportsProps[]; }; Import: ImportsProps; };