/** * Returns whether parsed JSON is a sprite sheet, rather than texture atlas data. A sprite sheet * names its image in `meta.image`, or its frames hold a `frame` rectangle. * * @param {object} data - The parsed JSON. * @returns {boolean} True if the JSON is a sprite sheet. * @ignore */ export function isSpriteSheet(data: object): boolean; /** * Converts the frames of a sprite sheet into the frames of texture atlas data, keyed by frame * name. Rejects a sheet whose frames would sample the wrong part of the image. * * @param {object} data - The sprite sheet JSON. * @param {number} width - The width of the sheet image, used when the sheet has no `meta.size`. * @param {number} height - The height of the sheet image, used when the sheet has no `meta.size`. * @returns {object} The texture atlas frames, each with `rect`, `pivot` and `border` arrays. * @throws {Error} If the sheet has no frames, or a frame is rotated, lies outside the sheet or * does not fit its untrimmed sprite. * @ignore */ export function parseSpriteSheet(data: object, width: number, height: number): object;