import { User } from "../authentication"; import { BafsPPPLoan, BafsPPPLoanNoteBody, PPPFDocument } from "../ppp-loans"; export declare type PaginatedData = { pages: number; totalItems: number; items: T[]; error?: string; }; export declare type State = { institution: { institution_uuid: string; sba_key_arn: string; docusign_key_arn: string; email_request_access: string; docusign_enabled: boolean; }; loanApp: BafsPPPLoan; session: Session; user: { authy_id?: string; borrower_uuid?: string; email?: string; hash?: string; phone?: string; setup_key?: string; borrower_entities?: Entity[]; }; loanAppList: PaginatedData; borrowerList: PaginatedData; }; export declare type Session = { apiUser?: boolean; /** A BAFS user with permissions that allow them to view and edit applications. */ bafsUser: boolean; borrowerUser: boolean; /** The institution UUID associated with the current JWT. */ institutionUuid: string; entityUuids: string[] | null; permissions: string[]; userUuid: string; }; export declare type Entity = { entity_uuid: string; borrower_uuid?: string; email?: string; }; export declare type PPPFState = { pppLoanApplication?: { application: BafsPPPLoan; /** A value the client provides via the PPPApplicationCrudPayload. */ token: any; }; pppLoanApplications?: { applications?: BafsPPPLoan[]; pages?: number; totalItems?: number; }; pppForgivenessDocuments?: { files: PPPFDocument[]; loading: boolean; error: { message: string; files?: string[]; } | null; }; pppForgivenessApplication?: { loading: boolean; documentUuid: string | null; }; config?: { docusignConfigRedirectUrl: string | null; needsDocusignConfig?: boolean; }; pppUnreadNotes?: BafsPPPLoanNoteBody; pppBorrowers?: PaginatedData; userManagement?: { institutions: { name: string; institution_uuid: string; }[]; }; };