import { codeBlock } from '@sap-cloud-sdk/util' ; param imports returns internal export function serializeImports ( imports ) { const relevantImports = imports . filter ( ( { names } ) => names . length ) ; return relevantImports . map ( ( { names , moduleIdentifier , typeOnly } ) => codeBlock `import ${ typeOnly ? 'type ' : '' }{ ${ names . join ( ', ' ) } } from '${ moduleIdentifier }';` ) . join ( '\n' ) ; } internal export interface Import { /**
     * Names of the exports that are to be imported.
     */ names : string [ ] ; /**
     * The module to import from.
     */ moduleIdentifier : string ; /**
     * Indicates whether this is a type-only import.
     */ typeOnly ? : boolean ; }