UNPKG

nitro-codegen

Version:

The code-generator for react-native-nitro-modules.

18 lines (17 loc) 971 B
import type { BridgedType } from '../BridgedType.js'; import type { SourceFile, SourceImport } from '../SourceFile.js'; import type { Type } from '../types/Type.js'; export declare class KotlinCxxBridgedType implements BridgedType<'kotlin', 'c++'> { readonly type: Type; constructor(type: Type); get hasType(): boolean; get canBePassedByReference(): boolean; get needsSpecialHandling(): boolean; getRequiredImports(): SourceImport[]; getExtraFiles(): SourceFile[]; asJniReferenceType(referenceType?: 'alias' | 'local' | 'global'): string; getTypeCode(language: 'kotlin' | 'c++', isBoxed?: boolean): string; parse(parameterName: string, from: 'c++' | 'kotlin', to: 'kotlin' | 'c++', inLanguage: 'kotlin' | 'c++'): string; parseFromCppToKotlin(parameterName: string, language: 'kotlin' | 'c++', isBoxed?: boolean): string; parseFromKotlinToCpp(parameterName: string, language: 'kotlin' | 'c++', isBoxed?: boolean): string; }