svelte-clerk
Version:
Svelte Clerk is the easiest way to add authentication and user management to your Svelte and SvelteKit applications. Add sign up, sign in, and profile management to your application in minutes.
20 lines (19 loc) • 672 B
TypeScript
import type { Action } from 'svelte/action';
type AnyObject = any;
interface MountProps {
mount: (node: HTMLDivElement, props: AnyObject) => void;
unmount: (node: HTMLDivElement) => void;
updateProps: (props: AnyObject) => void;
props?: AnyObject;
}
interface OpenProps {
open: (props: AnyObject) => void;
close: () => void;
props?: AnyObject;
}
/**
* Used to orchestrate mounting of Clerk components in a host Svelte application.
* Components are rendered into a specific DOM node using mount/unmount methods provided by the Clerk class.
*/
export declare const clerkHostRenderer: Action<HTMLDivElement, MountProps | OpenProps>;
export {};