/** * 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/dist/index-9f5bc072").x; selectAll: import("vitest/dist/index-9f5bc072").x; append: import("vitest/dist/index-9f5bc072").x; 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/dist/index-9f5bc072").x; nodes: import("vitest/dist/index-9f5bc072").x; getBBox: () => { x: string | number | null | undefined; y: string | number | null | undefined; width: string | number | null | undefined; height: string | number | null | undefined; }; insertBefore: import("vitest/dist/index-9f5bc072").x; curveBasis: import("vitest/dist/index-9f5bc072").x; curveBasisClosed: import("vitest/dist/index-9f5bc072").x; curveBasisOpen: import("vitest/dist/index-9f5bc072").x; curveLinear: import("vitest/dist/index-9f5bc072").x; curveLinearClosed: import("vitest/dist/index-9f5bc072").x; curveMonotoneX: import("vitest/dist/index-9f5bc072").x; curveMonotoneY: import("vitest/dist/index-9f5bc072").x; curveNatural: import("vitest/dist/index-9f5bc072").x; curveStep: import("vitest/dist/index-9f5bc072").x; curveStepAfter: import("vitest/dist/index-9f5bc072").x; curveStepBefore: import("vitest/dist/index-9f5bc072").x; }