import React, { Context, ReactNode } from 'react'; import { User } from '../api/types'; import { AuthFunctionContextValue, UserStoreValue } from './types'; type FC = React.FC>; export interface ApiConfig { url: string; authPath: string; } export interface UserStoreProps { initialUser?: U; initialCsrf?: string; children?: ReactNode; } export type MockUserStoreProps = Partial & AuthFunctionContextValue & { children?: ReactNode; }>; export declare const noop: () => void; export declare const dontResolvePromise: () => Promise; export declare const errorPromise: () => Promise; export declare const AuthFunctionContext: React.Context; export interface MakeGenericUserStoreResult { UserContext: Context>; UserStore: React.FC>>; MockUserStore: FC>; useUserStore: () => UserStoreValue & AuthFunctionContextValue; } export declare function makeGenericUserStore({ url: apiUrl, authPath: apiAuthPath, }: ApiConfig): MakeGenericUserStoreResult; export {};