import { Howl } from 'howler'; import p5, { Renderer } from 'p5'; import { Id } from 'wollok-ts'; import Game from './game.js'; import { GameSound } from './gameSound.js'; import { BoardState, Position } from './utils.js'; export interface Drawable { drawableImage?: DrawableImage; drawableText?: DrawableText; } export interface DrawableImage { image: p5.Image; position: Position; } export interface DrawableText { position: Position; text: string; color?: string; size?: number; horizAlign?: p5.HORIZ_ALIGN; vertAlign?: p5.VERT_ALIGN; style?: p5.THE_STYLE; } export declare function draw(sketch: p5, drawable: Drawable): void; export declare function write(sketch: p5, drawableText: DrawableText): void; export declare function pathToImage(images: Map, path?: string): p5.Image | undefined; export declare function drawImage(images: Map, image: string, sketch: p5, x: number, y: number): void; export declare function drawText(sketch: p5, text: string, x: number, y: number, cellSize: number, textColor?: string): void; export declare function drawBackground(sketch: p5, board: BoardState, images: Map): void; export declare function moveAllTo(drawable: Drawable, position: Position): void; export declare function resizeCanvas(gameWidth: number, gameHeight: number, rendered: Renderer, canvasParent?: Element): void; export declare function removeIfStartsWith(path: string, prefix: string): string; interface StepAssets { sketch: p5; game: Game; images: Map; sounds: Map; currentSounds: Map; audioMuted: boolean; gamePaused: boolean; } export declare function step(assets: StepAssets): void; export declare function updateSound(game: Game, sounds: Map, currentSounds: Map, audioMuted: boolean): void; export {};