import { Project, TypeCheckService } from './checker'; import type { MetaCheckerOptions } from './types'; export * from './checker'; export * from './dumiTransfomer'; export { vueTypesSchemaResolver } from './schemaResolver/custom'; export * from './types'; export { createRef } from './utils'; export type ComponentMetaChecker = typeof TypeCheckService; export interface CheckerProjectJsonOptions { root: string; json: any; checkerOptions?: MetaCheckerOptions; ts?: typeof import('typescript/lib/tsserverlibrary'); } /** * Create component metadata checker through json configuration * @group project */ export declare function createProjectByJson(options: CheckerProjectJsonOptions): Project; export interface CheckerProjectOptions { rootPath?: string; tsconfigPath?: string; checkerOptions?: MetaCheckerOptions; ts?: typeof import('typescript/lib/tsserverlibrary'); } /** * Create a meta checker for Vue project with rootPath * * If no parameters are passed in, tsconfig.json in the current workspace will be read. * @group project * @example * ```ts * import { createProject } from '@dumijs/vue-meta'; * createProject(); * ``` */ export declare function createProject(rootPath?: string): Project; /** * Create a meta checker for Vue project by options * @group project * @example * ```ts * import { createProject } from '@dumijs/vue-meta'; * // Manually pass in the tsconfig.json path * createProject({ * // If neither rootPath nor tsconfigPath is set, rootPath will be process.cwd() * rootPath: '', * // If tsconfigPath is not set, tsconfig will be /tsconfig.json * tsconfigPath: '/tsconfig.json', * checkerOptions: {}, * }); * ``` */ export declare function createProject(options: CheckerProjectOptions): Project;