1 |
|
2 | import type { Clerk, ClerkOptions, ClientResource, LoadedClerk, RedirectOptions, SignOutCallback, UserResource } from '@clerk/types';
|
3 | export interface IsomorphicClerkOptions extends ClerkOptions {
|
4 | scriptUrl?: string;
|
5 | }
|
6 | export interface BrowserClerkConstructor {
|
7 | new (frontendApi: string): BrowserClerk;
|
8 | }
|
9 | export declare type WithClerkProp<T> = T & {
|
10 | clerk: LoadedClerk;
|
11 | };
|
12 | export declare type WithUserProp<T> = T & {
|
13 | user: UserResource;
|
14 | };
|
15 | export interface MountProps {
|
16 | mount: (node: HTMLDivElement, props: any) => void;
|
17 | unmount: (node: HTMLDivElement) => void;
|
18 | props?: any;
|
19 | }
|
20 | export interface BrowserClerk extends Clerk {
|
21 | load: (opts?: ClerkOptions) => Promise<void>;
|
22 | updateClient: (client: ClientResource) => void;
|
23 | onComponentsReady: Promise<void>;
|
24 | components: any;
|
25 | }
|
26 | export declare type ClerkProp = BrowserClerkConstructor | BrowserClerk | undefined | null;
|
27 | declare type ButtonProps = {
|
28 | afterSignInUrl?: string;
|
29 | afterSignUpUrl?: string;
|
30 | redirectUrl?: string;
|
31 | mode?: 'redirect' | 'modal';
|
32 | children?: React.ReactNode;
|
33 | };
|
34 | export declare type SignInButtonProps = ButtonProps;
|
35 | export declare type SignUpButtonProps = ButtonProps;
|
36 | export declare type SignOutButtonProps = {
|
37 | signOutCallback?: SignOutCallback;
|
38 | children?: React.ReactNode;
|
39 | };
|
40 | export declare type RedirectToProps = {
|
41 | |
42 |
|
43 |
|
44 | returnBack?: boolean;
|
45 | } & RedirectOptions;
|
46 | export {};
|
47 |
|
\ | No newline at end of file |