import type { Game } from './game.js'; import type { Sound } from './sound.js'; /** One region of a sound sprite, as the audio atlas describes it. */ export type SoundSpriteMarker = { start: number; end: number; loop?: boolean; }; /** An audio atlas: the markers it carries and the one to start on. */ export type SoundSpriteConfig = { spritemap: Record; autoplay?: string; }; export declare class SoundSprite { game: Game; key: string; config: SoundSpriteConfig; autoplayKey: string | null; autoplay: Sound | boolean; sounds: Record; /** * TBD. * @param {Game} game - TBD. * @param {string} key - TBD. */ constructor(game: Game, key: string); /** * TBD. * @param {string} marker - TBD. * @param {number} volume - TBD. * @returns {Sound} TBD. */ play(marker: string, volume?: number): Sound | undefined; /** * TBD. * @param {string} marker - TBD. */ stop(marker: string): void; /** * TBD. * @param {string} marker - TBD. * @returns {Sound} TBD. */ get(marker: string): Sound | undefined; } //# sourceMappingURL=sound_sprite.d.ts.map