import { Response, Request } from 'express';
import { RenderTableListResponse } from './types';
import { UserReportData, RequestStatus, RequestedReport, StoredReportData } from '../../types/UserReports';
import { FilterValue } from '../_filters/types';
import { Services } from '../../types/Services';
import { AsyncReportUtilsParams } from '../../types/AsyncReportUtils';
export declare const setDataFromStatus: (status: RequestStatus, reportsData: UserReportData) => {
    timestamp: string;
    href: string | undefined;
};
export declare const renderList: ({ res, reportsData, maxRows, filterFunction, type, }: {
    res: Response;
    reportsData: StoredReportData[];
    maxRows?: number;
    filterFunction: (report: UserReportData) => boolean;
    type: "requested" | "viewed";
}) => Promise<RenderTableListResponse>;
export declare const updateExpiredStatus: ({ req, res, services }: AsyncReportUtilsParams) => Promise<boolean>;
export declare const initUserReports: ({ services, res, maxRows, }: {
    services: Services;
    res: Response;
    maxRows?: number;
}) => Promise<{
    requestedReports: RenderTableListResponse;
    viewedReports: RenderTableListResponse;
    bookmarks: {
        head: {
            emptyMessage?: string;
            href?: string;
        };
        tableData: {
            rows: ({
                html: string;
                classes?: never;
            } | {
                html: string;
                classes: string;
            })[][];
            head: {
                text: string;
                classes: string;
            }[];
        };
        total: {
            amount: number;
            shown: number;
            max: number;
        };
        csrfToken: string;
        type: string;
    } | undefined;
}>;
export declare const updateLastViewed: ({ req, services, reportStateData, userId, filters, }: {
    req: Request;
    services: Services;
    reportStateData: RequestedReport;
    userId: string;
    filters: FilterValue[];
}) => Promise<void>;
declare const _default: {
    renderList: ({ res, reportsData, maxRows, filterFunction, type, }: {
        res: Response;
        reportsData: StoredReportData[];
        maxRows?: number;
        filterFunction: (report: UserReportData) => boolean;
        type: "requested" | "viewed";
    }) => Promise<RenderTableListResponse>;
    updateExpiredStatus: ({ req, res, services }: AsyncReportUtilsParams) => Promise<boolean>;
    initUserReports: ({ services, res, maxRows, }: {
        services: Services;
        res: Response;
        maxRows?: number;
    }) => Promise<{
        requestedReports: RenderTableListResponse;
        viewedReports: RenderTableListResponse;
        bookmarks: {
            head: {
                emptyMessage?: string;
                href?: string;
            };
            tableData: {
                rows: ({
                    html: string;
                    classes?: never;
                } | {
                    html: string;
                    classes: string;
                })[][];
                head: {
                    text: string;
                    classes: string;
                }[];
            };
            total: {
                amount: number;
                shown: number;
                max: number;
            };
            csrfToken: string;
            type: string;
        } | undefined;
    }>;
    updateLastViewed: ({ req, services, reportStateData, userId, filters, }: {
        req: Request;
        services: Services;
        reportStateData: RequestedReport;
        userId: string;
        filters: FilterValue[];
    }) => Promise<void>;
};
export default _default;
