import { OutputFiles, TargetContext } from '../types/config'; import { MitosisComponent } from './mitosis-component'; export type MitosisBuildPlugin = (targetContext: TargetContext, files?: { componentFiles: OutputFiles[]; nonComponentFiles: OutputFiles[]; }) => void | Promise; export type MitosisJsonPlugin = (json: MitosisComponent) => MitosisComponent | void; export type MitosisCodePlugin = (code: string, json: MitosisComponent) => string; export type MitosisHook = { pre?: T; post?: T; }; export type MitosisPlugin = (options?: any) => { name?: string; order?: number; build?: MitosisHook; json?: MitosisHook; code?: MitosisHook; };