import { Plugin } from 'vite'; /** * @file Configure Fragment development diagnostics in Vite. * @module fragment-ux/vite * @author Jesse Oyofo Dan-Amuda * @company Digitwhale Innovations LTD * @copyright Copyright (c) 2026 Digitwhale Innovations LTD. All rights reserved. * @license MIT * @since 0.1.0 */ /** Options accepted by the Fragment Vite plugin. */ interface FragmentViteOptions { /** Editor command used by open-in-editor links. */ editor?: string; } /** * Add project metadata and a safe dev-only open-in-editor endpoint. * * @param options - Optional editor command. * @returns A Vite plugin. * @example * ```ts * import fragment from '@digitwhale_innovations/fragment-ux/vite' * export default defineConfig({ plugins: [fragment({ editor: 'vscode' })] }) * ``` * @since 0.1.0 */ declare function fragment(options?: FragmentViteOptions): Plugin; export { type FragmentViteOptions, fragment as default, fragment };