import type { ImpulseElement } from './element'; /** * The attributes an element of the class `ctor` observes: one for each attribute its `@property()` fields read, * inherited ones included. */ export declare function observedAttributes(ctor: object): string[]; /** * Binds every `@property()` of `element` now, taking the value each holds as its Default. `registerElement`'s subclass * calls this once construction is done, when every field initializer has run and nothing has been assigned yet, so any * later assignment, before the element connects or after, goes through the setter and is written to the attribute. */ export declare function bindProperties(element: Element): void; export default class Property { private readonly instance; private readonly declarations; private readonly bound; constructor(instance: ImpulseElement); start(): void; /** * Replaces each property's field with accessors, taking the value it holds as its Default. Each property is bound * once: on a later call the field is already an accessor, and reading it would take whatever the attribute holds by * then for the Default. */ bind(): void; stop(): void; /** * Invokes `[field]Changed(newValue, oldValue)` for each field that reads `attribute` and has the method, unless * `oldAttribute` and `newAttribute` read as the same value: `8_000` rewritten as `8000`, reformatted JSON, or an * attribute removed while it read as the Default. A callback that throws is reported like an uncaught error, so the * callbacks of other fields reading the same attribute still run. * * Throws for an attribute no field reads, such as one a subclass adds to `observedAttributes`, when the element has a * `[camelized attribute]Changed` method, since it would never be invoked. */ attributeChanged(attribute: string, oldAttribute: string | null, newAttribute: string | null): void; } //# sourceMappingURL=property.d.ts.map