1 | import * as Classes from "./classes.js";
|
2 | import { TransportClass } from "./core/clock/Transport.js";
|
3 | import { Context } from "./core/context/Context.js";
|
4 | import { ListenerClass } from "./core/context/Listener.js";
|
5 | import { DestinationClass } from "./core/context/Destination.js";
|
6 | import { DrawClass } from "./core/util/Draw.js";
|
7 | type ClassesWithoutSingletons = Omit<typeof Classes, "Transport" | "Destination" | "Draw">;
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | type ToneObject = {
|
13 | Transport: TransportClass;
|
14 | Destination: DestinationClass;
|
15 | Listener: ListenerClass;
|
16 | Draw: DrawClass;
|
17 | context: Context;
|
18 | now: () => number;
|
19 | immediate: () => number;
|
20 | } & ClassesWithoutSingletons;
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function fromContext(context: Context): ToneObject;
|
26 | export {};
|