/** * This is a mocked/stubbed version of the d3 Selection type. Each of the main functions are all * mocked (via vi.fn()) so you can track if they have been called, etc. * * Note that node() returns a HTML Element with tag 'svg'. It is an empty element (no innerHTML, no children, etc). * This potentially allows testing of mermaidAPI render(). */ export declare class MockedD3 { attribs: Map; id: string | undefined; _children: MockedD3[]; _containingHTMLdoc: Document; constructor(givenId?: string); /** Helpful utility during development/debugging. This is not a real d3 function */ listChildren(): string; select: import("@vitest/spy/dist/index").Mock; selectAll: import("@vitest/spy/dist/index").Mock; append: import("@vitest/spy/dist/index").Mock; insert: (type: string, beforeSelector?: string, id?: string) => MockedD3; attr(attrName: string): null | undefined | string | number; lower(attrValue?: string): this; style(attrValue?: string): this; text(attrValue?: string): this; node: import("@vitest/spy/dist/index").Mock; nodes: import("@vitest/spy/dist/index").Mock; getBBox: () => { x: string | number | null | undefined; y: string | number | null | undefined; width: string | number | null | undefined; height: string | number | null | undefined; }; insertBefore: import("@vitest/spy/dist/index").Mock; curveBasis: import("@vitest/spy/dist/index").Mock; curveBasisClosed: import("@vitest/spy/dist/index").Mock; curveBasisOpen: import("@vitest/spy/dist/index").Mock; curveLinear: import("@vitest/spy/dist/index").Mock; curveLinearClosed: import("@vitest/spy/dist/index").Mock; curveMonotoneX: import("@vitest/spy/dist/index").Mock; curveMonotoneY: import("@vitest/spy/dist/index").Mock; curveNatural: import("@vitest/spy/dist/index").Mock; curveStep: import("@vitest/spy/dist/index").Mock; curveStepAfter: import("@vitest/spy/dist/index").Mock; curveStepBefore: import("@vitest/spy/dist/index").Mock; }