/// import { Gestalt as Constraint } from './gestaltIndigo'; import { BBoxValues, MaybeBBoxValues } from "./kiwiBBoxTransform"; import * as Compile from './compileWithRefIndigo'; import { RelativeBFValue, BFRef, Ref } from './absoluteDataPaths'; declare type ShapeRelation = { [key in `${string}->${string}`]?: Constraint[]; }; export declare type Relation = T[]; declare type RelationInstance = T extends Array ? T[number] : T; declare type UnionToIntersection = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never; declare type ValuesOf = T[keyof T]; declare type ObjectValuesOf = Exclude, object>, Array>; declare type Flatten = UnionToIntersection>; declare type ShapeRecord3 = (Flatten<{ [keyOuter in (string & keyof T)]: { [keyInner in `$${(keyOuter)}$${string}`]: T[keyOuter] extends Ref ? 'ref' : ShapeEx>; }; }> & { [key in `$$${string}`]: ShapeEx>; }); export declare type Shape_, T> = { dataMap?: { [key: string]: string; }; isSet?: boolean; inheritFrame?: boolean; bbox?: MaybeBBoxValues; renderFn?: (canvas: BBoxValues, index?: number) => JSX.Element; shapes?: Shapes; rels?: ShapeRelation; }; export declare type ShapeObject = { dataMap?: { [key: string]: string; }; isSet?: boolean; inheritFrame?: boolean; bbox?: MaybeBBoxValues; renderFn?: (canvas: BBoxValues, index?: number) => JSX.Element; shapes?: any; rels?: ShapeRelation; }; export declare type ShapeEx = ShapeObject | ({} extends T ? never : ShapeFn); export declare type ShapeFn = (data: T) => ShapeValue; export declare type ShapeValue = ShapeObject<{}>; export declare type Shape = {} extends T ? ShapeValue : ShapeFn; export declare const lowerShape: (g: "ref" | ShapeEx) => T extends Ref ? "ref" : {} extends T ? ShapeValue : ShapeFn; export declare const createShape: , T>(shape_: Shape_) => T extends Ref ? "ref" : {} extends T ? ShapeValue : ShapeFn; 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=indigoShapeAPI.d.ts.map