import { FetchStateAndError, FetchedState, ID } from '../../../commonStateTypes/common'; import { SortOrder } from '../../../commonStateTypes/selectorTypes/sortOrderTypes'; import { ZeniDate } from '../../../zeniDayJS'; import { VendorFiling1099DownloadData } from './vendorFiling1099ListPayload'; export interface VendorFiling1099ViewUIState { downloadState: FetchStateAndError; scrollYOffset: number; searchString: string; sortKey: VendorFiling1099ListViewSortKey; sortOrder: SortOrder; } export interface VendorFiling1099ListState extends FetchedState { isVendor1099Populated: boolean; uiState: VendorFiling1099ViewUIState; vendorFiling1099DownloadData: VendorFiling1099DownloadData; vendorIds: ID[]; lastRefreshSuccessTime?: ZeniDate; } export interface VendorFiling1099ListQuery { sortKey: VendorFiling1099ListViewSortKey; sortOrder: SortOrder; } declare const toVendorFiling1099ListViewSortKey: (v: string) => "status" | "w9" | "legal_name" | "total" | "tax_classification" | "filing1099type"; export type VendorFiling1099ListViewSortKey = ReturnType; export type Type1099Download = 'nec' | 'misc' | 'int'; export {};