---@meta
---@class cc.AnimationFrame :cc.Ref
local AnimationFrame={ }
cc.AnimationFrame=AnimationFrame
---* Set the SpriteFrame.
---* param frame A SpriteFrame will be used.
---@param frame cc.SpriteFrame
---@return self
function AnimationFrame:setSpriteFrame (frame) end
---@overload fun():self
---@overload fun():self
---@return map_table
function AnimationFrame:getUserInfo () end
---* Sets the units of time the frame takes.
---* param delayUnits The units of time the frame takes.
---@param delayUnits float
---@return self
function AnimationFrame:setDelayUnits (delayUnits) end
---*
---@return self
function AnimationFrame:clone () end
---* Return a SpriteFrameName to be used.
---* return a SpriteFrameName to be used.
---@return cc.SpriteFrame
function AnimationFrame:getSpriteFrame () end
---* Gets the units of time the frame takes.
---* return The units of time the frame takes.
---@return float
function AnimationFrame:getDelayUnits () end
---* Sets user information.
---* param userInfo A dictionary as UserInfo.
---@param userInfo map_table
---@return self
function AnimationFrame:setUserInfo (userInfo) end
---* initializes the animation frame with a spriteframe, number of delay units and a notification user info
---@param spriteFrame cc.SpriteFrame
---@param delayUnits float
---@param userInfo map_table
---@return boolean
function AnimationFrame:initWithSpriteFrame (spriteFrame,delayUnits,userInfo) end
---* Creates the animation frame with a spriteframe, number of delay units and a notification user info.
---* param spriteFrame The animation frame with a spriteframe.
---* param delayUnits Number of delay units.
---* param userInfo A notification user info.
---* since 3.0
---@param spriteFrame cc.SpriteFrame
---@param delayUnits float
---@param userInfo map_table
---@return self
function AnimationFrame:create (spriteFrame,delayUnits,userInfo) end
---* js ctor
---@return self
function AnimationFrame:AnimationFrame () end