import { Components, JSX } from '@vime/core'; interface VmEmbedProps { class?: string; style?: string; /** A URL that will load the external player and media (Eg: https://www.youtube.com/embed/DyTCOwB0DVw). */ embedSrc?: Components.VmEmbed["embedSrc"]; /** The title of the current media so it can be set on the inner `iframe` for screen readers. */ mediaTitle?: Components.VmEmbed["mediaTitle"]; /** The parameters to pass to the embedded player which are appended to the `embedSrc` prop. These can be passed in as a query string or object. */ params?: Components.VmEmbed["params"]; /** Where the src request had originated from without any path information. */ origin?: Components.VmEmbed["origin"]; /** A collection of URLs to that the browser should immediately start establishing a connection with. */ preconnections?: Components.VmEmbed["preconnections"]; /** A function which accepts the raw message received from the embedded media player via `postMessage` and converts it into a POJO. */ decoder?: Components.VmEmbed["decoder"]; } interface VmEmbedEvents { /** Emitted when the `embedSrc` or `params` props change. The payload contains the `params` serialized into a query string and appended to `embedSrc`. */ vmEmbedSrcChange: Parameters[0]; /** Emitted when a new message is received from the embedded player via `postMessage`. */ vmEmbedMessage: Parameters[0]; /** Emitted when the embedded player and any new media has loaded. */ vmEmbedLoaded: Parameters[0]; } interface VmEmbedSlots { default: any; } import { SvelteComponent } from "svelte/internal"; declare class Embed extends SvelteComponent { $$prop_def: VmEmbedProps; $$events_def: VmEmbedEvents; $$slot_def: VmEmbedSlots; $on(type: K, callback: (e: VmEmbedEvents[K]) => any): () => void; $set($$props: Partial): void; constructor(options: any); /** Posts a message to the embedded media player. */ get postMessage(): Components.VmEmbed["postMessage"]; get ref(): any; get getWebComponent(): HTMLVmEmbedElement | undefined; } export default Embed;