import { CallHandler, ExecutionContext, NestInterceptor } from '@nestjs/common'; import { Observable } from 'rxjs'; import { DataToPaginate } from './interfaces'; interface PaginationBodyInterceptorOptions { pageName?: string; perPageName?: string; defaultLimit?: number; } export declare class PaginationBodyInterceptor implements NestInterceptor, PaginatedData> { private readonly pageName; private readonly perPageName; private readonly defaultLimit; constructor(options: PaginationBodyInterceptorOptions); intercept(context: ExecutionContext, next: CallHandler): Observable>; private readonly buildUrl; } interface PaginatedData { resources: T[]; pagination: { next: string | null; previous: string | null; first: string | null; last: string | null; totalPages: number | null; totalResources: number | null; }; } export {};