export interface AuthRuntimeApi { mount(root?: ParentNode): void; unmount(root?: ParentNode): void; registerPasskey(element: HTMLElement): Promise; authenticatePasskey(element: HTMLElement): Promise; } declare global { interface Window { WRNexusAuth?: AuthRuntimeApi; } } export function authRuntime(): AuthRuntimeApi | undefined { return typeof window === "undefined" ? undefined : window.WRNexusAuth; }