import { Selection } from "d3-selection"; import { StoryOptions, TextType } from "../types"; export type MeasureTextOptions = { maxWidth?: number; paddingLeft?: number; paddingTop?: number; paddingRight?: number; paddingBottom?: number; }; export type Svg = { selection: SVGSelection; measure: () => DOMRect; measureText: (text: string | number, textType: TextType, options?: MeasureTextOptions) => DOMRect; }; export type SVGSelection = Selection; export declare const createSvg: (div: HTMLDivElement, options: StoryOptions) => Svg;