import type { PluginFn } from 'edge.js/types'; import type { ApplicationService } from '@adonisjs/core/types'; import type Livewire from '../../livewire.js'; type LivewireInstance = InstanceType; /** * Edge.js plugin that registers Livewire tags and global functions * * This plugin adds the @livewire, @livewireStyles, @livewireScripts, @script, and @assets tags * to Edge templates, along with global helper functions for rendering components. * * @param app - The AdonisJS application service * @param livewire - The Livewire instance * @param version - Package version for asset URLs * @returns Edge plugin function that registers Livewire functionality * * @example * ```js * // Configure in providers/livewire_provider.ts * import { edgePluginLivewire } from '@adonisjs/livewire/plugins/edge' * * edge.use(edgePluginLivewire(app, livewire, packageJson.version)) * ``` * * @example * ```edge * {{-- Use in Edge templates --}} * * * * @livewireStyles() * * * @!livewire('counter', { count: 0 }) * @livewireScripts() * * * ``` */ export declare const edgePluginLivewire: (app: ApplicationService, livewire: LivewireInstance, version: string) => PluginFn; export {};