import type { LightningElement } from '../base-lightning-element'; import type { ConfigValue, ConfigWithReactiveProps, WireAdapterConstructor } from '../wiring'; /** * The decorator returned by `@wire()`; not the `wire` function. */ interface WireDecorator { (target: unknown, context: ClassFieldDecoratorContext | ClassMethodDecoratorContext any ? Value : (this: Class, value: Value) => void> | ClassGetterDecoratorContext | ClassSetterDecoratorContext): void; } /** * Decorator factory to wire a property or method to a wire adapter data source. * * TypeScript users: Due to limitations of the type system, some edge cases are * not fully type checked. See the type definition for {@linkcode ConfigWithReactiveProps} * for details. * @param adapter the adapter used to provision data * @param config configuration object for the adapter * @returns A decorator function * @example * export default class WireExample extends LightningElement { * \@api bookId; * \@wire(getBook, { id: '$bookId'}) book; * } */ export default function wire(adapter: WireAdapterConstructor | { adapter: WireAdapterConstructor; }, config?: ConfigWithReactiveProps): WireDecorator; export declare function internalWireFieldDecorator(key: string): PropertyDescriptor; export {}; //# sourceMappingURL=wire.d.ts.map