import { SHAPES } from '../const'; /** * The Rounded Rectangle object is an area that has nice rounded corners, as indicated by its * top-left corner point (x, y) and by its width and its height and its radius. * @memberof PIXI */ export declare class RoundedRectangle { /** @default 0 */ x: number; /** @default 0 */ y: number; /** @default 0 */ width: number; /** @default 0 */ height: number; /** @default 20 */ radius: number; /** * The type of the object, mainly used to avoid `instanceof` checks * @default PIXI.SHAPES.RREC * @see PIXI.SHAPES */ readonly type: SHAPES.RREC; /** * @param x - The X coordinate of the upper-left corner of the rounded rectangle * @param y - The Y coordinate of the upper-left corner of the rounded rectangle * @param width - The overall width of this rounded rectangle * @param height - The overall height of this rounded rectangle * @param radius - Controls the radius of the rounded corners */ constructor(x?: number, y?: number, width?: number, height?: number, radius?: number); /** * Creates a clone of this Rounded Rectangle. * @returns - A copy of the rounded rectangle. */ clone(): RoundedRectangle; /** * Checks whether the x and y coordinates given are contained within this Rounded Rectangle * @param x - The X coordinate of the point to test. * @param y - The Y coordinate of the point to test. * @returns - Whether the x/y coordinates are within this Rounded Rectangle. */ contains(x: number, y: number): boolean; toString(): string; }