import type { ApplicationService } from '@adonisjs/core/types'; import type { HttpContext } from '@adonisjs/core/http'; import ComponentHook from '../../component_hook.js'; import type ComponentContext from '../../component_context.js'; /** * PHP parity: SupportReactiveProps * * Registered as BOTH a global EventBus listener (static provide(), for the * 'mount.stub' hijack event SupportNestingComponents already fires) AND a * per-component Feature (for the ordering trick below). */ export declare class SupportReactiveProps extends ComponentHook { static hasPassedInProps(ctx: HttpContext, id: string): boolean; static getPassedInProp(ctx: HttpContext, id: string, name: string): any; /** * Runs as a per-component Feature. Registered in providers/livewire_provider.ts's * FEATURES array AFTER SupportDecorators — RequestHandler.trigger() iterates * `features` in array order (request_handler.ts:54), so by the time THIS * hydrate() runs, SupportDecorators.hydrate() has already run every * Reactive.hydrate(), which already applied the new value onto the * component and queued the updating/updated firing via store(component). * This is the port's substitute for PHP's `after('hydrate', ...)` — see * the design doc for why eventBus.after() doesn't give the same ordering * here. */ hydrate(_memo: Record, _context: ComponentContext): Promise; static provide(app: ApplicationService): Promise; }