// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

/**
 * @title IAggregator
 * @notice Interface for oracle aggregator (Chainlink-compatible)
 */
interface IAggregator {
    function latestAnswer() external view returns (int256);
    
    function latestRoundData()
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );
    
    function getRoundData(uint80 _roundId)
        external
        view
        returns (
            uint80 roundId,
            int256 answer,
            uint256 startedAt,
            uint256 updatedAt,
            uint80 answeredInRound
        );
    
    function updateAnswer(uint256 answer) external;
    
    function decimals() external view returns (uint8);
    function description() external view returns (string memory);
    function version() external view returns (uint256);
    function latestRound() external view returns (uint256);
}

