import { Plugin } from "vite"; //#region src/vite/types.d.ts /** UI framework target */ type Target = "react" | "preact" | "hono" | "solid"; /** Vite plugin options */ interface Options { /** * Entry point file * @default './src/index.ts' */ entry?: string; /** * Path to tsconfig.json * @default 'tsconfig.json' */ tsconfigPath?: string; /** * UI framework target */ target: Target; /** * Directory containing tool files * @default 'tools' */ toolsDir?: string; /** * Directory containing resource files * @default 'resources' */ resourcesDir?: string; /** * Directory containing prompt files * @default 'prompts' */ promptsDir?: string; } /** Resolved options with defaults applied */ interface ResolvedOptions { entry: string; tsconfigPath: string; target: Target; toolsDir: string; resourcesDir: string; promptsDir: string; } //#endregion //#region src/vite/index.d.ts /** * Chapplin Vite plugin * * @example * ```ts * // vite.config.ts * import { defineConfig } from "vite"; * import { chapplin } from "chapplin/vite"; * import react from "@vitejs/plugin-react"; * * export default defineConfig({ * plugins: [ * chapplin({ * entry: "./src/index.ts", * target: "react", * }), * react(), * ], * }); * ``` */ declare function chapplin(opts: Options): Plugin[]; //#endregion export { type Options, type ResolvedOptions, type Target, chapplin }; //# sourceMappingURL=index.d.ts.map