import type { LookupOptions } from 'node:dns'; import type { LookupFunction } from 'node:net'; import type { Readable } from 'node:stream'; import type { EntryObject, IPFamily } from 'cacheable-lookup'; import type { Input as IntoStreamInput } from 'into-stream'; import type { CreateAssemblyParams } from './apiTypes.ts'; export type InputFile = { kind: 'path'; field: string; path: string; } | { kind: 'base64'; field: string; base64: string; filename: string; contentType?: string; } | { kind: 'url'; field: string; url: string; filename?: string; contentType?: string; }; export type UploadInput = Readable | IntoStreamInput; export type Base64Strategy = 'buffer' | 'tempfile'; export type UrlStrategy = 'import' | 'download' | 'import-if-present'; export type PrepareInputFilesOptions = { inputFiles?: InputFile[]; params?: CreateAssemblyParams; fields?: Record; base64Strategy?: Base64Strategy; urlStrategy?: UrlStrategy; maxBase64Bytes?: number; allowPrivateUrls?: boolean; tempDir?: string; }; export type PrepareInputFilesResult = { params: CreateAssemblyParams; files: Record; uploads: Record; cleanup: Array<() => Promise>; }; export declare const resolvePublicDownloadAddresses: (value: string) => Promise>; type PinnedDnsLookup = LookupFunction & { (hostname: string, options: LookupOptions & { all: true; }, callback: (error: NodeJS.ErrnoException | null, result: ReadonlyArray) => void): void; (hostname: string, family: IPFamily, callback: (error: NodeJS.ErrnoException | null, address: string, family: IPFamily) => void): void; (hostname: string, callback: (error: NodeJS.ErrnoException | null, address: string, family: IPFamily) => void): void; }; export declare function createPinnedDnsLookup(validatedAddresses: Array<{ address: string; family: 4 | 6; }>): PinnedDnsLookup; export declare const prepareInputFiles: (options?: PrepareInputFilesOptions) => Promise; export {}; //# sourceMappingURL=inputFiles.d.ts.map