///
import { Constraint, Variable } from 'kiwi.js';
import { Gestalt } from "./gestalt";
import { BBoxValues, MaybeBBoxValues, BBoxTreeValue, bboxVarExprs, Transform } from './kiwiBBoxTransform';
export declare type DataMap = {
[key: string]: string;
};
export declare type BBoxTreeInherit = {
dataMap: DataMap;
isSet: boolean;
inheritFrame: boolean;
bbox: T;
canvas: T;
transform: Transform;
children: {
[key: string]: BBoxTreeInherit;
};
};
export declare type BBoxTreeInheritRef = {
$ref: boolean;
dataMap: DataMap;
isSet: boolean;
inheritFrame: boolean;
bbox: T;
canvas: T;
transform: Transform;
children: {
[key: string]: BBoxTreeInheritRef;
};
};
export declare type BBoxTreeVVE = BBoxTreeInheritRef<{
bboxVars: bboxVarExprs;
bboxValues?: MaybeBBoxValues;
}, Variable>;
export declare type CompiledAST = {
bboxValues: BBoxTreeValue;
encoding: GlyphWithPathNoRef;
};
export declare type Relation = {
left: string;
right: string;
gestalt: Gestalt[];
};
export declare type Ref = {
$ref: true;
path: string[];
};
export declare type Glyph = {
dataMap: DataMap;
isSet: boolean;
inheritFrame: boolean;
bbox?: MaybeBBoxValues;
renderFn?: (canvas: BBoxValues, index?: number) => JSX.Element;
children?: {
[key: string]: Glyph;
};
relations?: Relation[];
} | Ref;
export declare type GlyphNoRef = {
dataMap: DataMap;
isSet: boolean;
inheritFrame: boolean;
bbox?: MaybeBBoxValues;
renderFn?: (canvas: BBoxValues, index?: number) => JSX.Element;
children?: {
[key: string]: GlyphNoRef;
};
relations?: Relation[];
};
export declare type GlyphWithPath = {
dataMap: DataMap;
isSet: boolean;
inheritFrame: boolean;
pathList: string[];
path: string;
bbox?: MaybeBBoxValues;
renderFn?: (canvas: BBoxValues, index?: number) => JSX.Element;
children?: {
[key: string]: GlyphWithPath;
};
relations?: Relation[];
} | Ref;
export declare type GlyphWithPathNoRef = {
dataMap: DataMap;
isSet: boolean;
inheritFrame: boolean;
pathList: string[];
path: string;
bbox?: MaybeBBoxValues;
renderFn?: (canvas: BBoxValues, index?: number) => JSX.Element;
children: {
[key: string]: GlyphWithPathNoRef;
};
relations?: Relation[];
};
export declare type Mark = {
bbox: MaybeBBoxValues;
renderFn: (canvas: BBoxValues, index?: number) => JSX.Element;
};
declare type BBoxTreeInheritWithRef = {
dataMap: DataMap;
isSet: boolean;
inheritFrame: boolean;
bbox: T;
canvas: T;
transform: Transform;
children: {
[key: string]: BBoxTreeInheritWithRef;
};
} | Ref;
export declare type BBoxTreeVVEWithRef = BBoxTreeInheritWithRef<{
bboxVars: bboxVarExprs;
bboxValues?: MaybeBBoxValues;
}, Variable>;
export declare const addBBoxValueConstraints: (bboxTree: BBoxTreeVVEWithRef, constraints: Constraint[]) => void;
export declare const addBBoxConstraintsWithRef: (bboxTree: BBoxTreeVVEWithRef, constraints: Constraint[]) => void;
export declare const addTransformConstraints: (bboxTree: BBoxTreeVVE, constraints: Constraint[], name?: string) => void;
declare const _default: (encoding: Glyph) => CompiledAST;
export default _default;
//# sourceMappingURL=compileWithRef.d.ts.map