import { HubResource } from '../hub-resource.enum'; /** * SearchDocument * * Represents a minimal, enriched search result returned by the system's search engine. * Used primarily to render search results with optional UI enhancements like highlights. */ export declare class SearchDocument { /** * Unique identifier of the search result document. * * @example 'abc123' */ id: string; /** * The type of the resource returned by the search (e.g., 'project', 'user'). * Helps the client determine display strategy or iconography. * * @example 'project' */ type: HubResource; /** * Display name shown to the user in the search result. * * @example 'Innovatives Projekt' */ label: string; /** * Optional preview or teaser text giving context about the result. * * @example 'Ein Projekt über nachhaltige Technologie' */ preview?: string; /** * Redirect URL where the user will land when clicking the result. * * @example 'https://example.com/project/123' */ url: string; /** * Optional: Same label content but with `` tags applied for keyword highlighting. * Intended purely for enhanced frontend rendering. * * @example 'Innovatives Projekt' */ highlight?: string; }