import type { IChatPetAccessory } from "../chatPetAchievements.js"; import { ChatPetColor } from "../chatPetColors.js"; import type { ChatPetState } from "./chatPetWidget.js"; export declare const CHAT_PET_ACCESSORY_ATLAS_CELL_SIZE = 64; export declare const CHAT_PET_WIDE_ACCESSORY_ATLAS_CELL_SIZE = 96; export declare const CHAT_PET_ACCESSORY_ATLAS_WIDTH: number; export declare const CHAT_PET_ACCESSORY_ATLAS_HEIGHT: number; export interface IChatPetFixedOrientationDecoration { readonly frameBounds: readonly (readonly [ number, number, number, number ])[]; readonly sourceFrame: number; } export interface IChatPetAccessoryImageSource { readonly url: string; readonly cellSize: number; readonly width: number; readonly height: number; } export interface IChatPetImageDimensions { readonly naturalWidth: number; readonly naturalHeight: number; } export interface IChatPetPropellerBounds { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } export declare function getChatPetAccessoryImageSource(accessory: IChatPetAccessory): IChatPetAccessoryImageSource; export declare function hasChatPetBodyImageDimensions(image: IChatPetImageDimensions, frameWidth: number, frameHeight: number, frameCount: number): boolean; export declare function hasChatPetAccessoryImageDimensions(image: IChatPetImageDimensions, source: IChatPetAccessoryImageSource): boolean; export declare function drawChatPetComposite(context: CanvasRenderingContext2D, bodyImage: HTMLImageElement, accessoryImage: HTMLImageElement | undefined, bodyFrameIndex: number, rigFrameIndex: number, frameWidth: number, frameHeight: number, facingDirection: "left" | "right", state: ChatPetState, fixedOrientationDecorations?: readonly IChatPetFixedOrientationDecoration[], includeEyeAccessory?: boolean, eyeAccessoryMirrorsWithFacing?: boolean, coversAntennae?: boolean, color?: ChatPetColor, hasAnimatedPropeller?: boolean): void; export declare function getChatPetPropellerBounds(state: ChatPetState, frameIndex: number): IChatPetPropellerBounds | undefined; export declare function drawChatPetPropeller(context: CanvasRenderingContext2D, accessoryImage: HTMLImageElement, state: ChatPetState, frameIndex: number): void; export declare function drawChatPetAccessory(context: CanvasRenderingContext2D, accessoryImage: HTMLImageElement, state: ChatPetState, frameIndex: number, facingDirection: "left" | "right"): void; export declare function drawChatPetEyeAccessory(context: CanvasRenderingContext2D, accessoryImage: HTMLImageElement, state: ChatPetState, frameIndex: number, facingDirection: "left" | "right", mirrorsWithFacing?: boolean, gazeOffset?: readonly [ number, number ]): void;