import Gtk from "gi://Gtk"; import type { BaselinePosition, Orientation, PackType } 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 { ChildOrderController } from "../../utils/element-extenders/child-order-controller"; import { ElementLifecycleController } from "../../utils/element-extenders/element-lifecycle-controller"; 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"; type BoxPropsMixin = ChildPropertiesProps & SizeRequestProps & AlignmentProps & MarginProps & ExpandProps & StyleProps; export interface BoxProps extends BoxPropsMixin { spacing?: number; baselinePosition?: BaselinePosition; orientation?: Orientation; defaultPackType?: PackType; } export declare class BoxElement extends BaseElement implements GjsElement<"BOX", Gtk.Box> { static getContext(currentContext: HostContext): HostContext; readonly kind = "BOX"; protected widget: Gtk.Box; protected parent: GjsElement | null; readonly lifecycle: ElementLifecycleController; protected readonly handlers: EventHandlers; protected readonly children: ChildOrderController>; protected readonly propsMapper: PropertyMapper; constructor(props: DiffedProps); protected applyPackType(child: GjsElement): void; updateProps(props: DiffedProps): void; appendChild(child: GjsElement | TextNode): void; insertBefore(child: GjsElement | TextNode, beforeChild: GjsElement): void; remove(parent: GjsElement): void; render(): void; notifyWillMountTo(parent: GjsElement): boolean; notifyMounted(): void; notifyChildWillUnmount(child: GjsElement): void; notifyWillUnmount(): void; show(): void; hide(): void; getWidget(): Gtk.Box; getParentElement(): GjsElement | null; } export {};