import type { UmbLinkPickerLink } from '../../link-picker-modal/types.js'; import type { UmbLinkPickerLinkRefLookup } from './types.js'; import { nothing } from '../../../../external/lit/index.js'; import { UmbLitElement } from '../../../core/lit-element/index.js'; /** * Renders a picked link as a reference node. * * A link that carries everything it displays needs no lookup and is rendered by this element as it is. * A link type that points at an item whose name or URL has to be looked up extends this element and * implements the lookups; each element holds on to what it resolved, so the list it sits in can render * and re-order again without the same information being requested twice. * @element umb-link-picker-link-ref * @attr name - The name this link is displayed under. Set by the element, not by its consumer. * @slot actions - The actions available for this link. */ export declare class UmbLinkPickerLinkRefElement extends UmbLitElement { #private; /** * The link to render. * @type {(UmbLinkPickerLink | undefined)} */ set link(value: UmbLinkPickerLink | undefined); get link(): UmbLinkPickerLink | undefined; /** * The location this link can be edited at, if it can be edited at all. * @type {(string | undefined)} * @attr */ href?: string; /** * Renders the link without its actions and without a link to edit it. * @type {boolean} * @attr * @default false */ readonly: boolean; /** * Renders the link as the only one of its list. * @type {boolean} * @attr * @default false */ standalone: boolean; /** * The name this link is displayed under, which is the name it carries itself where it has one and * the resolved name of the item it points at otherwise. * @returns {string} The name shown for this link, or an empty string while it is still unknown. */ get displayName(): string; /** * The URL this link is displayed with, which is the URL of the item it points at where that had to * be resolved and the one it carries itself otherwise, plus any query string. * @returns {string} The URL shown for this link, or an empty string while it is still unknown. */ get displayUrl(): string; protected _resolvedName?: string; protected _resolvedUrl?: string; /** * Requests the name of the item this link points at. Resolves to nothing unless a link type that * has a name to look up implements it. * @param {string} _unique The unique of the item this link points at. * @returns {Promise} The name of the item, or the error that stopped * it from being looked up. */ protected _requestName(_unique: string): Promise; /** * Requests the URL of the item this link points at. Resolves to nothing unless a link type that * has a URL to look up implements it. * @param {string} _unique The unique of the item this link points at. * @returns {Promise} The URL of the item, or the error that stopped it * from being looked up. */ protected _requestUrl(_unique: string): Promise; connectedCallback(): void; protected updated(changedProperties: Map): void; render(): import("lit-html").TemplateResult<1> | typeof nothing; static readonly styles: import("lit").CSSResult[]; } declare global { interface HTMLElementTagNameMap { 'umb-link-picker-link-ref': UmbLinkPickerLinkRefElement; } }