// Shared types for cross-lecture search (Phase 1).
import type { VectorHit } from '../db/repo';

/** A search result at segment granularity, with which signal(s) matched. */
export interface SearchHit extends VectorHit {
  via: 'semantic' | 'lexical' | 'both';
}

export interface SearchOptions {
  /** Scope to a course (null = Unsorted); omit for all. */
  courseId?: string | null;
  /** Max hits to return. */
  limit?: number;
}
