15 lines
601 B
TypeScript
15 lines
601 B
TypeScript
/**
|
|
* Process @file CLI arguments into text content and image attachments
|
|
*/
|
|
import type { ImageContent } from "@earendil-works/pi-ai";
|
|
export interface ProcessedFiles {
|
|
text: string;
|
|
images: ImageContent[];
|
|
}
|
|
export interface ProcessFileOptions {
|
|
/** Whether to auto-resize images to 2000x2000 max. Default: true */
|
|
autoResizeImages?: boolean;
|
|
}
|
|
/** Process @file arguments into text content and image attachments */
|
|
export declare function processFileArguments(fileArgs: string[], options?: ProcessFileOptions): Promise<ProcessedFiles>;
|
|
//# sourceMappingURL=file-processor.d.ts.map
|