/** * Sets the theme like `setTheme`, inside a view transition when the browser * has one and the reader has not asked for less motion. In a transition the * attribute is written and `iv:themechange` fires once the browser has taken * its snapshot (the next frame); the promise resolves then. * * @param {"light"|"dark"|"system"} theme Theme to apply. * @param {{ root?: Element, persist?: boolean, storageKey?: string }} [options] Options of `setTheme`. * @returns {Promise<"light"|"dark">} The resolved theme after applying. * @throws {Error} `IvError` `invalid-option` (synchronously) when `theme` is not valid. */ export function setThemeWithTransition(theme: "light" | "dark" | "system", options?: { root?: Element; persist?: boolean; storageKey?: string; }): Promise<"light" | "dark">;