/**
 * Nexus Discovery — Cross-project task discovery and search business logic.
 *
 * Extracted from src/dispatch/engines/nexus-engine.ts so the engine
 * remains a thin wrapper and all business logic lives in src/core/.
 *
 * @task T5701
 * @epic T5701
 */
/**
 * Extract meaningful keywords from text (filters stop words and short tokens).
 */
export declare function extractKeywords(text: string): string[];
export interface DiscoverResult {
    project: string;
    taskId: string;
    title: string;
    score: number;
    type: string;
    reason: string;
}
export interface NexusDiscoverResult {
    query: string;
    method: string;
    results: DiscoverResult[];
    total: number;
}
export interface SearchResult {
    id: string;
    title: string;
    status: string;
    priority?: string;
    description?: string;
    _project: string;
}
export interface NexusSearchResult {
    pattern: string;
    results: SearchResult[];
    resultCount: number;
}
/**
 * Discover tasks related to a given task query across projects.
 *
 * Returns a structured result or throws on unrecoverable errors.
 * Validation errors (bad syntax, wildcard) are returned as { error } objects
 * so callers can wrap them in an appropriate engine error response.
 */
export declare function discoverRelated(taskQuery: string, method?: string, limit?: number): Promise<NexusDiscoverResult | {
    error: {
        code: string;
        message: string;
    };
}>;
/**
 * Search for tasks across all registered projects.
 *
 * Returns a structured result or throws on unrecoverable errors.
 * Validation errors (bad pattern) are returned as { error } objects.
 */
export declare function searchAcrossProjects(pattern: string, projectFilter?: string, limit?: number): Promise<NexusSearchResult | {
    error: {
        code: string;
        message: string;
    };
}>;
//# sourceMappingURL=discover.d.ts.map