import { Decorator } from '../support_decorators/decorator.js'; /** * PHP parity: Livewire\Attributes\Session * * Persists a property's value in the user's session across requests - * private per-user state that doesn't need to show up in the URL (unlike * `@url()`, its closest sibling here). On mount, the property is * hydrated from the session if a value is already stored there; every * subsequent update writes the new value back. * * Real Livewire supports a dynamic key with property placeholders (e.g. * `'search-{author.id}'`); this implements the same `{propertyName}` * interpolation, resolved against the component's own top-level * properties (no nested-path support like PHP's dot access). */ export default class Session extends Decorator { name: string; key: string | null; constructor(name: string, key?: string | null); private resolveKey; mount(): Promise; update(propertyName: string, _fullPath: string, newValue: any): Promise; }