import type { ImpulseElement } from '../element'; import type { Registry, RegistryEntry } from '../registry'; /** * A decorator for a public instance field of an Impulse element, in either decorator convention. */ export interface FieldDecorator { /** * Legacy (`experimentalDecorators`). TypeScript hands a method or accessor decorator its property descriptor as a * third argument, so typing that argument as `undefined` rejects them at compile time. */ (proto: ImpulseElement, key: string, descriptor?: undefined): void; /** * Standard. The literal `name`, `private`, and `static` TypeScript gives the context reject the members a Declaration * can't be made for at compile time. */ (value: undefined, context: ClassFieldDecoratorContext & { name: string; private: false; static: false; }): void; } /** * A decorator that records each field it decorates under `registry`, as the Declaration `declarationFor` makes for the * field's name. `decorator` is how the decorator is spelled in errors, such as `@property()`. * * Throws a `TypeError` for anything but a public instance field named by a string, since a Declaration is looked up * by name on each element. */ export declare function fieldDecorator(decorator: string, registry: Registry, declarationFor: (key: string) => T): FieldDecorator; //# sourceMappingURL=field.d.ts.map