import type { DataPoint } from "@d3plus/data";
import type { D3Selection } from "@d3plus/dom";
import type { AccessorFn } from "../utils/index.js";
import Shape, { type ShapeAes } from "./Shape.js";
/**
    Creates SVG areas based on an array of data.
*/
export default class Bar extends Shape {
    _height: AccessorFn;
    _labelBounds: ((d: DataPoint, i: number, aes: ShapeAes) => Record<string, unknown> | null | false) | null;
    _name: string;
    _width: AccessorFn;
    _x: AccessorFn;
    _x0: AccessorFn;
    _x1: AccessorFn | null;
    _y: AccessorFn;
    _y0: AccessorFn;
    _y1: AccessorFn | null;
    /**
        Invoked when creating a new class instance, and overrides any default parameters inherited from Shape.
        @private
  */
    constructor();
    /**
        Draws the bars.
      @param callback Optional callback invoked after rendering completes.
  */
    render(callback?: () => void): this;
    /**
        Given a specific data point and index, returns the aesthetic properties of the shape.
        @param data point*
        @param index @private
  */
    _aes(d: DataPoint, i: number): ShapeAes;
    /**
        Provides the default positioning to the <rect> elements.
        @param elem @private
  */
    _applyPosition(elem: D3Selection): void;
    /**
        Calculates the height of the <rect> by assessing the x and y properties.
  
        @private
  */
    _getHeight(d: DataPoint, i: number): number;
    /**
        Calculates the width of the <rect> by assessing the x and y properties.
  
        @private
  */
    _getWidth(d: DataPoint, i: number): number;
    /**
        Calculates the x of the <rect> by assessing the x and width properties.
  
        @private
  */
    _getX(d: DataPoint, i: number): number;
    /**
        Calculates the y of the <rect> by assessing the y and height properties.
  
        @private
  */
    _getY(d: DataPoint, i: number): number;
    /**
        The height accessor for each bar.
  
  @example
  function(d) {
    return d.height;
  }
  */
    height(): AccessorFn;
    height(_: AccessorFn | number): this;
    /**
        The width accessor for each bar.
  
  @example
  function(d) {
    return d.width;
  }
  */
    width(): AccessorFn;
    width(_: AccessorFn | number): this;
    /**
        The x0 (left edge) position accessor for each bar.
  */
    x0(): AccessorFn;
    x0(_: AccessorFn | number): this;
    /**
        The x1 (right edge) position accessor for each bar.
  */
    x1(): AccessorFn | null;
    x1(_: AccessorFn | number | null): this;
    /**
        The y0 (top edge) position accessor for each bar.
  */
    y0(): AccessorFn;
    y0(_: AccessorFn | number): this;
    /**
        The y1 (bottom edge) position accessor for each bar.
  */
    y1(): AccessorFn | null;
    y1(_: AccessorFn | number | null): this;
}
