import type { DeepSeekCompleter } from "#recipes/deepseek/client"; import { type Tally } from "#recipes/deepseek/run"; import { type TranslitOptions } from "#recipes/deepseek/transliteration"; import { type SourceRightsAdmission } from "#source-register/corpus-inputs"; /** * The two generation modes. */ export declare const DeepSeekMode: { readonly Transliteration: "transliteration"; readonly Kryptonite: "kryptonite"; }; export type DeepSeekMode = (typeof DeepSeekMode)[keyof typeof DeepSeekMode]; /** * Everything one run reads from its command line. */ export interface DeepSeekRunOptions extends TranslitOptions { mode: DeepSeekMode; outDir: string; targetCount: number; } /** * What a run is given rather than reads itself, so a test can drive it with no key and no network. */ export interface DeepSeekRunDependencies { /** * Builds the check for the run's context. * It is called first. */ openAdmission(context: string): Promise; /** * Reads the API key. * It is called only after the sources are admitted. */ readAPIKey(): string; /** * Builds the completion client from the key. */ createClient(apiKey: string): DeepSeekCompleter; } /** * The files a mode writes under the output directory. */ export declare function deepSeekOutputPaths(mode: DeepSeekMode, outDir: string): { canonical: string; rawLog: string; checkpoint: string; }; /** * Runs one generation mode end to end and returns its tally. * * @throws When transliteration is given no seed files, when a source is refused, or * when the key is missing, each before any request is made. */ export declare function runDeepSeekGeneration(options: DeepSeekRunOptions, dependencies: DeepSeekRunDependencies): Promise; //# sourceMappingURL=generate.d.ts.map