/** * Gets the canvas pool array. * @returns {{canvas: HTMLCanvasElement, parent: object}[]} The canvas pool array. */ export declare const getPool: () => CanvasPoolEntry[]; /** * Gets the current size of the canvas pool. * @returns {number} The current size of the canvas pool. */ export declare const getFirst: () => number; /** * Adds a canvas to the pool with the specified parent. * @param {object} parent - The parent object for the canvas. */ export declare const remove: (parent: CanvasOwner) => void; /** * Removes a canvas from the pool. * @param {HTMLCanvasElement} canvas - The canvas to remove from the pool. */ export declare const removeByCanvas: (canvas: HTMLCanvasElement) => void; /** * Gets the total count of canvases in the pool. * @returns {number} The total count of canvases in the pool. */ export declare const getTotal: () => number; /** * Gets the number of free canvases in the pool. * @returns {number} The number of free canvases in the pool. */ export declare const getFree: () => number; /** * Gets a canvas from the pool or creates a new one. * @param {object} parent - The parent object for the canvas. * @param {number} [width] - Optional width of the canvas. * @param {number} [height] - Optional height of the canvas. * @param {boolean} skipPool - True to skip using the pool and create a new canvas. * @returns {HTMLCanvasElement} The canvas from the pool or a newly created one. */ export declare const create: (parent: CanvasOwner, width?: number, height?: number, skipPool?: boolean) => HTMLCanvasElement; //# sourceMappingURL=pool.d.ts.map