import { Type } from '@nestjs/common'; /** * Generic class used to represent paginated search results. * * Combines an array of result items (specific type `TData`) with * a total count of all matching records to support pagination UI logic. * * @template TData - The type of individual items in the results list. */ export declare class SearchResult { /** * List of search result items for the current page. * The actual type is dynamically determined in API decorators. */ results: TData[]; /** * Total number of matched records across all pages. * Enables pagination calculations on the frontend. * * @example 42 */ total: number; } /** * Builds a Swagger response decorator for endpoints returning `SearchResult`. * * Registers models for Swagger documentation and generates a typed paginated * response schema. This enables accurate API response metadata for search endpoints. * * @template TModel - The class of the model returned in `results`. * @param {Type} model - The constructor of the model class. * @returns {MethodDecorator} Swagger response decorator for paginated results. */ export declare function ApiSearchResultResponse>(model: TModel): MethodDecorator;