UNPKG

@n8n/n8n-nodes-langchain

Version:
20 lines (19 loc) 1.48 kB
import type { IDataObject, IExecuteFunctions } from 'n8n-workflow'; export declare function getFilenameFromMimeType(mimeType: string | undefined, baseName: string, fallbackExtension: string): string; export declare function getCredentialHostname(this: IExecuteFunctions, host: string): string; export declare function downloadFile(this: IExecuteFunctions, url: string, fallbackMimeType?: string, qs?: IDataObject, allowedDomains?: string): 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>;