/// import { Gestalt as Constraint } from './gestalt'; import { BBoxValues, MaybeBBoxValues } from "./kiwiBBoxTransform"; import * as Compile from './compileWithRef'; import { RelativeBFValue, BFRef } from './absoluteDataPaths'; declare type ShapeRelation = { [key in `${K}->${K}`]?: Constraint[]; }; declare const KONT = "KONT"; export declare type Relation = T[]; export declare type Mark_ = { debugBBox?: boolean; inheritFrame?: boolean; bbox?: MaybeBBoxValues; renderFn: (canvas: BBoxValues, index?: number) => JSX.Element; }; export declare type Mark = { type: 'mark'; debugBBox?: boolean; inheritFrame?: boolean; bbox?: MaybeBBoxValues; renderFn: (canvas: BBoxValues, index?: number) => JSX.Element; rels?: ShapeRelation<"$canvas">; }; declare type ShapeRecord = { [key in keyof ShapeFns]: Shape; } & { [key in keyof Shapes]: key extends keyof ShapeFns ? Shape : ShapeValue; }; export declare type Group_, T> = { debugBBox?: boolean; inheritFrame?: boolean; bbox?: MaybeBBoxValues; shapes?: Shapes; rels?: ShapeRelation<(keyof Shapes & string) | "$canvas">; }; export declare type Group = { type: 'group'; [KONT]: (kont: >(_: Group_) => R) => R; }; export declare const createGroup: , T>(exRecord_: Group_) => Group; export declare const createMark: (mark: Mark_) => Mark; export declare const lowerGroup: (g: Group) => keyof T extends never ? Group<{}> : ShapeFn; export declare function createShape, T>(mark: Mark_): Mark; export declare function createShape, T>(group: Group_): keyof T extends never ? Group<{}> : ShapeFn; export declare function createShape, T>(fn: ShapeFn): ShapeFn; export declare type PreShape, T> = Mark_ | Group_ | ShapeFn; export declare type Shape = ShapeValue | ShapeFn; export declare type ShapeValue = Mark | Group<{}>; export declare type ShapeFn = (data: T) => ShapeValue; export declare const compileShapeValue: (g: ShapeValue | BFRef) => Compile.Glyph; export declare function render(shape: ShapeValue): JSX.Element; export declare function render(data: T, shapeFn: ShapeFn): JSX.Element; export {}; //# sourceMappingURL=unifiedShapeAPI4.d.ts.map