export declare function buildDashboardExecutiveReportData(projectId: bigint): Promise<{
    projectId: string;
    projectCode: string;
    projectTitle: string;
    donor: string;
    sector: string;
    location: string;
    providersCount: number;
    traineesCount: number;
    rows: {
        code: string;
        name: string;
        claimed: string;
        verified: string;
        status: string;
    }[];
    generatedAt: string;
} | null>;
export declare function buildProviderProfileReportData(projectId: bigint, providerId: bigint): Promise<{
    projectCode: string;
    projectTitle: string;
    donor: string;
    providerCode: string;
    providerName: string;
    contactName: string;
    contactEmail: string;
    contactPhone: string;
    trainingsCount: number;
    traineesCount: number;
    rows: {
        name: string;
        claimed: string;
        verified: string;
    }[];
    generatedAt: string;
} | null>;
export declare function buildTraineeProfileReportData(projectId: bigint, traineeId: bigint): Promise<{
    projectCode: string;
    projectTitle: string;
    donor: string;
    traineeUniqueId: string;
    externalBeneficiaryId: string;
    fullName: string;
    sex: string;
    ageYears: string;
    phone: string;
    email: string;
    region: string;
    subCity: string;
    woreda: string;
    kebele: string;
    provider: string;
    training: string;
    education: string;
    employmentStatus: string;
    inclusion: {
        disability: string;
        idp: string;
        returnee: string;
        lowIncome: string;
    };
    generatedAt: string;
} | null>;
export declare function buildIndicatorCatalogueReportData(projectId: bigint, focusCode?: string | null): Promise<{
    projectCode: string;
    projectTitle: string;
    donor: string;
    rows: {
        name: string;
        code: string;
        claimed: string;
        verified: string;
        status: string;
    }[];
    generatedAt: string;
} | null>;
/**
 * Feedback / GRM summary dataset.
 *
 * Every metric is computed over the FULL register (no row cap) through
 * `computeFeedbackMetrics`, so the exported numbers always match the KPI cards
 * and the grievance indicator. Timeliness comes from the first response date.
 */
export declare function buildFeedbackSummaryReportData(projectId: bigint, providerId?: bigint | null): Promise<{
    projectCode: string;
    projectTitle: string;
    donor: string;
    summary: {
        total: number;
        open: number;
        resolved: number;
        responded: number;
        timely: number;
        late: number;
        overdueUnresponded: number;
        pending: number;
        timelyPct: number;
    };
    byProvider: import("./feedbackMetrics.js").FeedbackProviderMetrics[];
    rows: {
        ref: string;
        category: string;
        status: import("./feedbackMetrics.js").DerivedFeedbackStatus;
        subject: string;
        provider: string;
        submittedAt: string;
        dueAt: string;
        firstResponseAt: string;
        timely: import("./feedbackMetrics.js").TimelinessVerdict;
    }[];
    generatedAt: string;
} | null>;
/**
 * Feedback / GRM detailed dataset (full register, no row cap).
 *
 * Rows are grouped by training provider (tpCode, then submission date) so a
 * provider's cases read as one block instead of being scattered. Each row carries
 * the submitter's feedback and the provider's response in separate columns.
 */
export declare function buildFeedbackDetailedReportData(projectId: bigint, providerId?: bigint | null): Promise<{
    projectCode: string;
    projectTitle: string;
    donor: string;
    summary: {
        total: number;
        open: number;
        resolved: number;
        responded: number;
        timely: number;
        late: number;
        overdueUnresponded: number;
        pending: number;
        timelyPct: number;
    };
    byProvider: import("./feedbackMetrics.js").FeedbackProviderMetrics[];
    rows: {
        provider: string;
        ref: string;
        category: string;
        status: import("./feedbackMetrics.js").DerivedFeedbackStatus;
        subject: string;
        feedbackMessage: string;
        responseMessage: string;
        submitterName: string;
        submitterEmail: string;
        submitterPhone: string;
        region: string;
        submittedAt: string;
        dueAt: string;
        firstResponseAt: string;
        timely: import("./feedbackMetrics.js").TimelinessVerdict;
    }[];
    generatedAt: string;
} | null>;
export declare function buildVerificationRunsSummaryReportData(projectId: bigint, providerId?: bigint | null): Promise<{
    projectCode: string;
    projectTitle: string;
    donor: string;
    rows: {
        id: string;
        provider: string;
        indicator: string;
        stage: string;
        period: string;
        status: string;
        sampleSize: number;
        decided: number;
        verifiedYes: number;
        confirmRate: string;
        drawnAt: string;
        finalizedAt: string;
    }[];
    generatedAt: string;
} | null>;
export declare function buildActivitiesComplianceReportData(projectId: bigint, providerId?: bigint | null): Promise<{
    projectCode: string;
    projectTitle: string;
    donor: string;
    rows: {
        code: string;
        name: string;
        scope: string;
        rulesConfigured: number;
        submitted: number;
        approved: number;
        rejected: number;
        providerCoverage: number;
        complianceRate: string;
    }[];
    generatedAt: string;
} | null>;
export type ReportExtraSection = {
    title: string;
    headers: string[];
    rows: string[][];
    widths?: number[];
};
export declare function buildStandardDocxReport(title: string, subtitle: string, infoRows: Array<[string, string]>, tableHeaders: string[], tableRows: string[][], notes?: string, extraSections?: ReportExtraSection[]): Promise<Buffer<ArrayBuffer>>;
export declare function buildStandardPdfReport(title: string, subtitle: string, infoRows: Array<[string, string]>, tableHeaders: string[], tableRows: string[][], notes?: string, extraSections?: ReportExtraSection[]): Promise<Buffer<ArrayBufferLike>>;
type FeedbackDetailedReportData = NonNullable<Awaited<ReturnType<typeof buildFeedbackDetailedReportData>>>;
/**
 * Detailed GRM export: overview, a per-provider timeliness table, then the case
 * records grouped so all of one provider's feedback reads as a single block.
 */
export declare function buildFeedbackDetailedPdfReport(data: FeedbackDetailedReportData): Promise<Buffer<ArrayBufferLike>>;
export {};
//# sourceMappingURL=reportExportService.d.ts.map