/** * Cal.com inline embed for the demo call with Marc, ported from the official embed snippet. * * The snippet installs a queueing `window.Cal` stub and loads `embed.js` once; every call made * before the script arrives is replayed by it, so the booking can be set up right away. Only the * Explore Scalar dialog uses this, which means the script is never requested outside localhost. */ /** The queueing stub and, once loaded, the real embed API: both are callable and carry a queue */ type CalApi = { (...args: unknown[]): void; q?: unknown[][]; ns?: Record; loaded?: boolean; config?: { forwardQueryParams?: boolean; }; }; declare global { interface Window { Cal?: CalApi; } } /** * Renders the booking calendar into `element`. * * Resolves once the embed script is available (immediately when the host page already brought * its own `Cal`) and rejects when the script cannot be loaded, so the caller can offer a link to * the booking page instead. */ export declare const mountCalInline: (element: HTMLElement, theme: "light" | "dark") => Promise; export {}; //# sourceMappingURL=cal-embed.d.ts.map