import type CancelablePromise from "cancelable-promise"; import type { Readable, Writable } from "svelte/store"; export type CoWebsiteState = "asleep" | "loading" | "ready"; export interface CoWebsite { getId(): string; getUrl(): URL; getState(): CoWebsiteState; getStateSubscriber(): Readable; getIframe(): HTMLIFrameElement | undefined; getLoadIframe(): CancelablePromise | undefined; getWidthPercent(): number | undefined; isClosable(): boolean; load(): CancelablePromise; unload(): Promise; }