import { PropertyValueMap } from 'lit'; import { ShadowPartsController } from '../controllers/shadow-parts-controller'; import { UserOrAgentMinimalType } from '../types/users.types'; import { WeavySubTypeComponent } from '../classes/weavy-sub-type-component'; declare global { interface HTMLElementTagNameMap { "wy-user-card": WyUserCard; } } /** * Overlay profile card displaying detailed information about a user. The user can be followed/unfollowed, blocked and reported. * * **Used sub components:** * * - [``](./ui/wy-overlay.ts) * - [``](./ui/wy-button.ts) * - [``](./ui/wy-container.ts) * - [``](./ui/wy-avatar.ts) * - [``](./ui/wy-avatar.ts) * - [``](./ui/wy-dropdown.ts) * - [``](./ui/wy-icon.ts) * * @slot toggle - Content to use in a toggle button for the overlay. */ export declare class WyUserCard extends WeavySubTypeComponent { #private; static styles: import('lit').CSSResult[]; /** @internal */ protected exportParts: ShadowPartsController; /** User identifier to get profile details for. */ uid?: string | number | null; /** User profile data */ profile?: UserOrAgentMinimalType; /** Whether the overlay should be shown */ show: boolean; /** Element to listen to `wy-user-profile` events on */ listenTo?: EventTarget | null; /** * Follows the provided user/profile. * @param [follow=true] - Whether the user should be followed or not. */ follow(follow?: boolean): void; /** * Confirm and report the profile for moderation. * * Uses the native confirm rather than an in-app dialog, matching how reporting a message works. * Reporting cannot be undone, so confirmation is required before submitting it. */ confirmReport(): Promise; /** * Blocks or unblocks the profile. * * Resolves when the server has it, so callers can act on the outcome; rejects the way the mutation does. * * @param [block=true] - Whether the user should be blocked or not. */ block(block?: boolean): Promise; /** * Confirm and block the profile. * * The confirm carries the explanation, not a warning: blocking is reversible and unblock sits right here, so the * point is telling people what it actually does. That the blocked user is never told, and can still write to you, is * the part nobody expects. */ confirmBlock(): Promise; /** * Unblocks the profile and closes the card. * * Unconfirmed, unlike blocking -- it only restores what was there. Closes on the way out for the same reason block * does: the card looks the same either way, so the close is the only sign anything happened. */ private unblock; handleUserAction: (e: Event) => void; protected willUpdate(changedProperties: PropertyValueMap): Promise; render(): import('../../node_modules/lit-html/node/lit-html.js').TemplateResult<1>; disconnectedCallback(): void; } //# sourceMappingURL=wy-user-card.d.ts.map