import * as typescript from 'typescript'; import typescript__default from 'typescript'; type ParseObjectTypesMode = "none" | "partial" | "full"; /** Options for configuring the CEM Type Parser plugin */ interface Options { /** Controls whether object types are parsed, and if so, whether fully or partially ('none', 'partial', 'full') */ parseObjectTypes?: ParseObjectTypesMode; /** Controls whether method parameters are parsed */ parseParameters?: boolean; /** Determines the name of the property used in the manifest to store the parsed type */ propertyName?: string; /** Maximum depth to which nested types are expanded before bailing (default: 8) */ maxParseDepth?: number; /** Maximum number of properties a type can have before bailing (default: 50) */ maxParseProperties?: number; /** Shows output logs used for debugging */ debug?: boolean; /** Prevents plugin from executing */ skip?: boolean; } /** * CEM Analyzer plugin to parse types in component metadata * @param op Configuration options * @returns */ declare function typeParserPlugin(op?: Options): { name: string; analyzePhase: typeof analyzePhase; packageLinkPhase: () => void; } | undefined; /** * * @param ts Global TypeScript object * @param globs File globs to analyze * @param configName TypeScript config file name to use during analysis * @returns */ declare function getTsProgram(ts: typeof typescript, globs: string[], configName?: string): typescript__default.Program; declare function getTypeChecker(): any; declare function getProgram(): any; declare function analyzePhase({ ts, node, moduleDoc }: any): void; export { type Options, type ParseObjectTypesMode, getProgram, getTsProgram, getTypeChecker, typeParserPlugin };