import { CustomElement, Group } from '@antv/g'; import { Layout } from '@antv/component'; import { FlexLayout, GuideComponentComponent, GuideComponentOrientation, GuideComponentPosition, Scale } from '../runtime'; import { G2Element, Selection } from '../utils/selection'; type Descriptor = { render?: (attributes: T, container: CustomElement) => void; }; export declare function createComponent(descriptor: Descriptor): any; export declare function maybeAppend(parent: Group, selector: string, node: string | ((data: T, i: number) => G2Element)): Selection; export declare function titleContent(field: string | string[]): string; export declare function inferComponentLayout(position: GuideComponentPosition, userDefinitions?: FlexLayout): { flexDirection: string; justifyContent: string; alignItems: string; display: string; }; export declare class G2Layout extends Layout { get child(): any; update(options: any): void; } export declare class LegendCategoryLayout extends G2Layout { update(options: any): void; } export declare function scaleOf(scales: Scale[], type: string): Scale | undefined; export declare function isHorizontal(orientation: GuideComponentOrientation): boolean; export declare function isVertical(orientation: GuideComponentOrientation): boolean; export declare function inferComponentShape(value: Record, options: Record, component: GuideComponentComponent): { readonly orientation: "horizontal" | "vertical"; readonly width: any; readonly height: any; readonly size: any; readonly length: any; }; export declare function domainOf(scales: Scale[]): any[]; export declare function adaptor(style: T): any; export {};