| 1 | let installedStylesPath = '' |
| 2 | let stylesReadyPromise: Promise<unknown> = Promise.resolve(null) |
| 3 | |
| 4 | export function setStylesRuntime(options: { |
| 5 | installedStylesPath: string |
| 6 | ready: Promise<unknown> |
| 7 | }): void { |
| 8 | installedStylesPath = options.installedStylesPath |
| 9 | stylesReadyPromise = options.ready |
| 10 | } |
| 11 | |
| 12 | export function getInstalledStylesPath(): string { |
| 13 | return installedStylesPath |
| 14 | } |
| 15 | |
| 16 | export async function waitForStylesReady(): Promise<unknown> { |
| 17 | return stylesReadyPromise |
| 18 | } |
| 19 |