import { LegalDocumentClassifications, PolicyOnAccount, PolicyValuesType } from '../../constants/lookups'; import { AgreementContentType, DocumentItem, LegalDocumentContent, LegalDocumentWithExtraInfo } from '../../types/Document.type'; export interface IDocumentApi { getAccountDocuments(accountNumber: string, docType: string, fromDate?: string, toDate?: string): Promise; getPolicyValues(type: PolicyValuesType): Promise; updatePolicyOnAccount(accountId: number, policy: PolicyOnAccount, type: PolicyValuesType): Promise<{ success: boolean; }>; getLegalDocuments(classification: LegalDocumentClassifications): Promise; getFundingAgreements(): Promise; downloadDocument(accountNumber: string, key: string): Promise; downloadLegalDocument(id: string): Promise; getLegalDocumentContent(id: string | number): Promise; signLegalDocument(params: { esigned: boolean; documentId: string | number; signature: string; }): Promise<{ success: true; }>; }