import { Binding } from './binding'; /** * AsyncBinding — handles `~prop=${promise}` * * Accepts a Promise (or any thenable). While the promise is pending, sets a * `data-pending` attribute on the element and optionally a `pending` property. * When the promise resolves, sets `name` property to the resolved value and * removes the pending marker. On rejection, sets `name` to undefined and adds * a `data-error` attribute with the error message. * * Supports re-entrant updates: if a new promise arrives before the previous * one settles, the previous result is discarded (last-write wins). */ export declare class AsyncBinding implements Binding { private readonly element; private readonly name; private generation; constructor(element: Element, name: string); setValue(value: unknown): Promise; clear(): void; disconnect(): void; } //# sourceMappingURL=async-binding.d.ts.map