gemini-batch
Version:
Batch processing for Google Gemini AI
58 lines (57 loc) • 2.06 kB
TypeScript
import { Ora } from "ora";
import { BatchJob, File } from "@google/genai";
//#region src/command/config.d.ts
declare function handleConfigList(): Promise<void>;
declare function handleConfigSetKey(key: string): Promise<void>;
declare function handleConfigSetModel(model: string): Promise<void>;
//#endregion
//#region src/command/file.d.ts
declare function handleFileList(options: {
limit: number;
}): Promise<File[]>;
declare function handleFileGet(fileName: string): Promise<File | null>;
declare function handleFileCreate(options: {
prompt: string;
input: string;
output: string;
model: string;
}): Promise<boolean>;
//#endregion
//#region src/command/job.d.ts
declare function handleJobList(options: {
limit: number;
}): Promise<BatchJob[]>;
declare function handleJobGet(jobId: string, options?: {
json?: boolean;
}): Promise<BatchJob | null>;
declare function handleJobDownload(jobId: string, options: {
output?: string;
json?: boolean;
}): Promise<null | string>;
declare function handleJobCancel(jobId: string): Promise<boolean>;
declare function handleJobSubmit(input: string, options?: {
json?: boolean;
}): Promise<BatchJob | null>;
//#endregion
//#region src/utils.d.ts
declare class Logger {
spinner: Ora | null;
private silent;
setSilent(silent: boolean): void;
createSpinner(text: string): void;
stopSpinner(): void;
startSpinner(): void;
private output;
info(message: string): void;
success(message: string): void;
warn(message: string): void;
error(message: string): void;
log(message: string): void;
}
declare const logger: Logger;
declare function createSpinner(text: string): Ora;
declare function formatDate(t: number | string): string;
declare function maskApiKey(apiKey: string): string;
//#endregion
export { Logger, createSpinner, formatDate, handleConfigList, handleConfigSetKey, handleConfigSetModel, handleFileCreate, handleFileGet, handleFileList, handleJobCancel, handleJobDownload, handleJobGet, handleJobList, handleJobSubmit, logger, maskApiKey };
//# sourceMappingURL=index.d.ts.map