import { AxiosInstance } from 'axios'; import { BaseModel } from './models'; import { FormWithRelations } from './form'; import { PersonWithRelations } from './person'; import { AddressWithRelations } from './address'; import { LoanPartWithRelations } from './loan-part'; import { CreditWithRelations } from './credit'; import { KycWithRelations } from './kyc'; import { Id } from '../types'; import { BaseModelInterface } from './interfaces'; export declare type UserItem = { id?: number; email?: string; password?: string; }; export declare type Credentials = { email: string; password: string; }; export declare class User extends BaseModel implements BaseModelInterface { constructor(api: AxiosInstance); login(credentials: Credentials): Promise; anonymousLogin(): Promise; formInit(userId: Id, opts?: { ignoreTink?: boolean; ignoreRoaring?: boolean; }): Promise; lookUpPerson(userId: Id, ssn: string): Promise; } export interface UserRelations { forms?: FormWithRelations[]; persons?: PersonWithRelations[]; addresses?: AddressWithRelations[]; loanParts?: LoanPartWithRelations[]; credits?: CreditWithRelations[]; kycs?: KycWithRelations[]; } export declare type UserWithRelations = User & UserRelations;