import { ID } from '../../commonStateTypes/common'; import { ZeniDate } from '../../zeniDayJS'; import ZeniUrl from '../../zeniUrl'; export interface FileState { attachmentFileByFileId: Record; fileByFileId: Record; } export interface File { checksum: string; contentType: SupportedFileType; createTime: ZeniDate; createUserid: ID; documentType: AllowedDocumentType; extension: SupportedFileFormatType; fileId: ID; fileLocation: string; fileName: string; fileSize: number; fileSizeUnit: FileSizeUnit; imageFileIds: string[]; imageFiles: ImageFile[]; purposeId: AllowedPurposeIdType; signedUrl: ZeniUrl; companyId?: ID; documentSide?: AllowedDocumentSideType; updateTime?: ZeniDate; updateUserId?: ID; userId?: ID; } interface ImageFile { fileLocation: string; height: number; imageFormat: string; imageSizeType: string; signedUrl: ZeniUrl; width: number; } export interface AttachmentFile { base64String: string; companyId: ID; extension: SupportedAttachmentFileFormatType; fileId: ID; fileName: string; } export type FileSizeUnit = 'bytes'; declare const toSupportedFileType: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain"; export declare const toSupportedFileTypeStrict: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "image/bmp" | "image/heic" | "text/html" | "text/csv" | "text/plain" | undefined; export type SupportedFileType = ReturnType; declare const toSupportedFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".bmp" | ".heic" | ".png" | ".csv" | ".txt"; export type SupportedFileFormatType = ReturnType; export declare const SUPPORTED_ATTACHMENT_FILE_TYPES: readonly ["application/pdf", "image/jpeg", "image/jpg", "image/png", "text/plain", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"]; export declare const toSupportedAttachmentFileType: (v: string) => "application/pdf" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "text/plain"; export type SupportedAttachmentFileType = ReturnType; export declare const SUPPORTED_TRANSACTION_LINE_ATTACHMENT_FILE_TYPES: readonly ["application/x-excel", "application/pdf", "image/jpeg", "image/jpg", "image/png", "text/csv", "image/tiff", "image/tif", "image/gif", "text/xml", "application/xml", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "application/msword"]; export declare const toSupportedTransactionLineAttachmentFileType: (v: string) => "application/pdf" | "application/msword" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "image/jpeg" | "image/jpg" | "image/png" | "text/csv" | "application/x-excel" | "image/tiff" | "image/tif" | "image/gif" | "text/xml" | "application/xml"; export type SupportedTransactionLineAttachmentFileType = ReturnType; export declare const toSupportedAttachmentFileFormatType: (v: string) => ".pdf" | ".jpeg" | ".jpg" | ".png" | ".txt" | ".xls" | ".xlsx"; type SupportedAttachmentFileFormatType = ReturnType; export declare const toAllowedDocumentType: (v: string) => "bill_pay" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "check" | "company_logo" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "others" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing" | "company_formation_document"; export declare const toAllowedDocumentTypeStrict: (v: string) => "bill_pay" | "1099_C" | "address_verification" | "certificate_of_incorporation" | "check" | "company_logo" | "contract" | "driving_license" | "employer_identification_number_confirmation" | "id_document" | "others" | "passport" | "purchase_order" | "social_security_card" | "tax_ein" | "w4" | "w9" | "certificate_of_good_standing" | "company_formation_document" | undefined; export type AllowedDocumentType = ReturnType; declare const toAllowedPurposeIdType: (v: string) => "bill_pay" | "company_logo" | "others" | "personal_identity" | "business_verification" | "personal_identity_others" | "business_verification_others" | "international_wire_business_verification"; export type AllowedPurposeIdType = ReturnType; declare const toAllowedDocumentSideType: (v: string) => "front" | "back"; export type AllowedDocumentSideType = ReturnType; export {};