import Gtk from "gi://Gtk"; import { WrapMode } from "../../../enums/custom"; import type { EllipsizeMode, Justification } from "../../../enums/gtk3-index"; import type { GjsContext } from "../../../reconciler/gjs-renderer"; import type { HostContext } from "../../../reconciler/host-context"; import { BaseElement, type GjsElement } from "../../gjs-element"; import type { ElementMargin } from "../../utils/apply-margin"; import { ElementLifecycleController } from "../../utils/element-extenders/element-lifecycle-controller"; import type { SyntheticEvent } from "../../utils/element-extenders/event-handlers"; import { EventHandlers } from "../../utils/element-extenders/event-handlers"; import type { DiffedProps } from "../../utils/element-extenders/map-properties"; import { PropertyMapper } from "../../utils/element-extenders/map-properties"; import type { AlignmentProps } from "../../utils/property-maps-factories/create-alignment-prop-mapper"; import type { ChildPropertiesProps } from "../../utils/property-maps-factories/create-child-props-mapper"; import type { ExpandProps } from "../../utils/property-maps-factories/create-expand-prop-mapper"; import type { MarginProps } from "../../utils/property-maps-factories/create-margin-prop-mapper"; import type { SizeRequestProps } from "../../utils/property-maps-factories/create-size-request-prop-mapper"; import type { StyleProps } from "../../utils/property-maps-factories/create-style-prop-mapper"; import type { TextNode } from "../text-node"; import type { BaseMarkupElement } from "./markup-elem"; type MarkupPropsMixin = ChildPropertiesProps & SizeRequestProps & AlignmentProps & MarginProps & ExpandProps & StyleProps; export type MarkupEvent

= {}> = SyntheticEvent; export interface MarkupProps extends MarkupPropsMixin { wrapMode?: WrapMode; ellipsize?: EllipsizeMode; justify?: Justification; lines?: number; selectable?: boolean; margin?: ElementMargin; xAlign?: number; yAlign?: number; onAnchorClick?: (event: MarkupEvent<{ href: string; }>) => void; } export declare class MarkupElement extends BaseElement implements GjsElement<"MARKUP", Gtk.Label> { static getContext(currentContext: HostContext): HostContext; readonly kind = "MARKUP"; protected widget: Gtk.Label; protected parent: GjsElement | null; protected children: Array; readonly lifecycle: ElementLifecycleController; protected readonly handlers: EventHandlers; protected readonly propsMapper: PropertyMapper; constructor(props: DiffedProps); updateProps(props: DiffedProps): void; appendChild(child: GjsElement | TextNode): void; insertBefore(child: GjsElement | TextNode, beforeChild: GjsElement | TextNode): void; remove(parent: GjsElement): void; protected triggerRepaint: () => void; render(): void; notifyWillMountTo(parent: GjsElement): boolean; notifyMounted(): void; notifyChildWillUnmount(child: GjsElement): void; show(): void; hide(): void; getWidget(): Gtk.Label; getParentElement(): GjsElement | null; getMarkupRoot(): MarkupElement; protected paint(): void; } export {};