import { LitElement, PropertyValueMap } from 'lit'; import { WeavyType } from '../contexts/weavy-context'; import { UserType } from '../types/users.types'; import { ContextIdType } from '../contexts/context-id-context'; import { WeavyComponentActionProps, WeavyComponentContextProps } from '../types/component.types'; import { WyActionEventDetailType } from '../types/action.events'; /** * Base class for internal weavy sub components. This class provides common properties and internal data consumed from contexts. * * @fires ready - When the component has rendered. */ export declare class WeavySubComponent extends LitElement implements WeavyComponentContextProps, WeavyComponentActionProps { #private; /** * @internal */ contextId: ContextIdType | undefined; /** * @internal */ user: UserType | undefined; /** * @internal */ weavy: WeavyType | undefined; /** * Resolves when a contextual id is available. * * @internal * @returns {Promise} */ whenContextId(): Promise; /** * Resolves when current user data is available. * * @internal * @returns {Promise} */ whenUser(): Promise; /** * Resolves when a weavy context is available. * * @internal * @returns {Promise} */ whenWeavy(): Promise; /** * Resolves when the component has rendered first time. * * @returns {Promise} */ whenReady(): Promise; /** * Dispatch a `wy-action` event on the component. * * @fires {WyActionEventType} wy-action - Emitted when an action takes place. */ dispatchAction(detail: WyActionEventDetailType): boolean; protected willUpdate(changedProperties: PropertyValueMap): void; connectedCallback(): void; protected firstUpdated(changedProperties: PropertyValueMap): void; } //# sourceMappingURL=weavy-sub-component.d.ts.map