import { FetchStateAndError, FetchedState, ID } from '../../commonStateTypes/common'; import { SortOrder } from '../../commonStateTypes/selectorTypes/sortOrderTypes'; import { OnboardingInfo } from '../../entity/company/companyStateTypes'; import { ZeniDate } from '../../zeniDayJS'; import { AuditSummaryPayload, ReviewCompanyPayload } from './reviewCompanyPayload'; export declare const toReviewColumnKeyType: (v: string) => "uncategorized" | "companyName" | "notes" | "auditScore" | "miscategorized" | "warnings" | "vendorReview" | "reviewVendor"; export type ReviewCompanyColumnKey = ReturnType; export type ReviewTransactionsType = 'income' | 'expense'; export interface AuditSummary { auditReportLastGeneratedDate: ZeniDate | null; auditScorePercentage: number; bypassedAuditScore: number; fixesRequired: number; totalChecks: number; } export interface ReviewCompany { auditSummary: AuditSummary; companyId: ID; isVendorReviewReqiured: boolean; miscategorizedTransactions: Record; name: string; primaryEmailDomain: string; retryBankAccountConnectionFetchState: FetchStateAndError; uncategorizedTransactions: Record; note?: string; noteLastUpdatedUserId?: ID; noteLastUpdateTime?: ZeniDate; onboardingInfo?: OnboardingInfo; } export interface ReviewCompanyListUIState { filterText: string; sortKey: ReviewCompanyColumnKey; sortOrder: SortOrder; } export interface ReviewCompanyViewState extends FetchedState { reviewCompanyById: Record; uiState: ReviewCompanyListUIState; } export declare const toAuditSummary: (auditSummaryPayload: AuditSummaryPayload) => AuditSummary; export declare function toReviewCompany(company: ReviewCompanyPayload): ReviewCompany;