1 |
|
2 | export declare type SpriteMap = {
|
3 | [key: string]: [number, number];
|
4 | };
|
5 | export interface HookOptions {
|
6 | volume?: number;
|
7 | playbackRate?: number;
|
8 | interrupt?: boolean;
|
9 | soundEnabled?: boolean;
|
10 | sprite?: SpriteMap;
|
11 | }
|
12 | export interface PlayOptions {
|
13 | id?: string;
|
14 | forceSoundEnabled?: boolean;
|
15 | playbackRate?: number;
|
16 | }
|
17 | export declare type PlayFunction = (options: PlayOptions) => void;
|
18 | export interface ExposedData {
|
19 | sound: Howl | null;
|
20 | stop: (id?: number) => void;
|
21 | isPlaying: boolean;
|
22 | }
|
23 | export declare type ReturnedValue = [PlayFunction, ExposedData];
|