import { Journal } from "./journal.cjs";
import { AudioResponse, ChaosConfig, EmbeddingFixtureOpts, Fixture, FixtureFileEntry, FixtureFileResponse, FixtureMatch, FixtureOpts, ImageResponse, JournalEntry, MockServerOptions, Mountable, RecordConfig, TranscriptionResponse, VideoResponse } from "./types.cjs";
import { SearchResult } from "./search.cjs";
import { RerankResult } from "./rerank.cjs";
import { ModerationResult } from "./moderation.cjs";

//#region src/llmock.d.ts
declare class LLMock {
  private fixtures;
  private searchFixtures;
  private rerankFixtures;
  private moderationFixtures;
  private mounts;
  private serverInstance;
  private options;
  constructor(options?: MockServerOptions);
  addFixture(fixture: Fixture): this;
  addFixtures(fixtures: Fixture[]): this;
  prependFixture(fixture: Fixture): this;
  getFixtures(): readonly Fixture[];
  loadFixtureFile(filePath: string): this;
  loadFixtureDir(dirPath: string): this;
  /**
   * Add fixtures from a JSON string or pre-parsed array of fixture entries.
   * Validates all fixtures and throws if any have severity "error".
   */
  addFixturesFromJSON(input: string | FixtureFileEntry[]): this;
  clearFixtures(): this;
  on(match: FixtureMatch, response: FixtureFileResponse, opts?: FixtureOpts): this;
  onMessage(pattern: string | RegExp, response: FixtureFileResponse, opts?: FixtureOpts): this;
  onEmbedding(pattern: string | RegExp, response: FixtureFileResponse, opts?: EmbeddingFixtureOpts): this;
  onJsonOutput(pattern: string | RegExp, jsonContent: object | string, opts?: FixtureOpts): this;
  onToolCall(name: string, response: FixtureFileResponse, opts?: FixtureOpts): this;
  onToolResult(id: string, response: FixtureFileResponse, opts?: FixtureOpts): this;
  onTurn(turn: number, pattern: string | RegExp, response: FixtureFileResponse, opts?: FixtureOpts): this;
  onImage(prompt: string | RegExp, response: ImageResponse): this;
  onSpeech(input: string | RegExp, response: AudioResponse): this;
  onTranscription(response: TranscriptionResponse): this;
  onVideo(prompt: string | RegExp, response: VideoResponse): this;
  onAudio(input: string | RegExp, response: AudioResponse): this;
  onSoundEffect(text: string | RegExp, response: AudioResponse): this;
  onMusic(prompt: string | RegExp, response: AudioResponse): this;
  onFalAudio(prompt: string | RegExp, response: AudioResponse, model?: string): this;
  onSearch(pattern: string | RegExp, results: SearchResult[]): this;
  onRerank(pattern: string | RegExp, results: RerankResult[]): this;
  onModerate(pattern: string | RegExp, result: ModerationResult): this;
  /**
   * Queue a one-shot error that will be returned for the next matching
   * request, then automatically removed. Implemented as an internal fixture
   * with a `predicate` that always matches (so it fires first) and spliced
   * at the front of the fixture list.
   */
  nextRequestError(status: number, errorBody?: {
    message?: string;
    type?: string;
    code?: string;
  }): this;
  mount(path: string, handler: Mountable): this;
  getRequests(): JournalEntry[];
  getLastRequest(): JournalEntry | null;
  clearRequests(): void;
  resetMatchCounts(testId?: string): this;
  setChaos(config: ChaosConfig): this;
  clearChaos(): this;
  enableRecording(config: RecordConfig): this;
  disableRecording(): this;
  reset(): this;
  start(): Promise<string>;
  stop(): Promise<void>;
  get journal(): Journal;
  get url(): string;
  get baseUrl(): string;
  get port(): number;
  static create(options?: MockServerOptions): Promise<LLMock>;
}
//# sourceMappingURL=llmock.d.ts.map
//#endregion
export { LLMock };
//# sourceMappingURL=llmock.d.cts.map