@n8n/n8n-nodes-langchain
Version:

19 lines (18 loc) • 1.36 kB
TypeScript
import type { IDataObject, IExecuteFunctions } from 'n8n-workflow';
export declare function getFilenameFromMimeType(mimeType: string | undefined, baseName: string, fallbackExtension: string): string;
export declare function downloadFile(this: IExecuteFunctions, url: string, fallbackMimeType?: string, qs?: IDataObject): Promise<{
fileContent: Buffer<ArrayBuffer>;
mimeType: string;
}>;
export declare function uploadFile(this: IExecuteFunctions, fileContent: Buffer, mimeType: string): Promise<{
fileUri: string;
mimeType: string;
}>;
export declare function transferFile(this: IExecuteFunctions, i: number, downloadUrl?: string, fallbackMimeType?: string, qs?: IDataObject): Promise<{
fileUri: string;
mimeType: string;
}>;
export declare function createFileSearchStore(this: IExecuteFunctions, displayName: string): Promise<IDataObject>;
export declare function uploadToFileSearchStore(this: IExecuteFunctions, i: number, fileSearchStoreName: string, displayName: string, downloadUrl?: string, fallbackMimeType?: string, qs?: IDataObject): Promise<IDataObject | undefined>;
export declare function listFileSearchStores(this: IExecuteFunctions, pageSize?: number, pageToken?: string): Promise<IDataObject>;
export declare function deleteFileSearchStore(this: IExecuteFunctions, name: string, force?: boolean): Promise<IDataObject>;