import { ContextMap } from '../context-map'; /** * Decorator that consumes a {@link ContextMap} key, assigning the * resolved value to the decorated property and updating it on every * change. Compose with Stencil's `@State()` to trigger a re-render. * * @typeParam K - The {@link ContextMap} key being consumed. * @param key - The {@link ContextMap} key to consume. * @returns A `PropertyDecorator` that wires up the subscription. * * @example Consume a context value in a component * ```ts * import { State } from '@stencil/core'; * import { SelectContext, User } from '@limetech/lime-web-components'; * * class MyComponent { * @State() * @SelectContext('user') * private user: User; * } * ``` * * @beta * @group Context */ export declare function SelectContext(key: K): PropertyDecorator;