import type { Core } from '@strapi/types'; import type { File, InputFile, UploadableFile, FileInfo } from '../types'; import type { ViewConfiguration } from '../controllers/validation/admin/configureView'; import type { Settings } from '../controllers/validation/admin/settings'; type User = { id: string | number; }; type ID = string | number; type CommonOptions = { user?: User; }; declare const _default: ({ strapi }: { strapi: Core.Strapi; }) => { formatFileInfo: ({ filename, type, size }: { filename: string; type: string; size: number; }, fileInfo?: Partial, metas?: { refId?: ID; ref?: string; field?: string; path?: string; tmpWorkingDirectory?: string; }) => Promise>; upload: ({ data, files, }: { data: Record; files: InputFile[]; }, opts?: CommonOptions) => Promise; updateFileInfo: (id: ID, { name, alternativeText, caption, focalPoint, folder }: FileInfo, opts?: CommonOptions) => Promise; replace: (id: ID, { data, file }: { data: { fileInfo: FileInfo; }; file: InputFile; }, opts?: CommonOptions) => Promise; findOne: (id: ID, populate?: {}) => Promise; findMany: (query?: any) => Promise; findPage: (query?: any) => Promise<{ results: any; pagination: { page: number; pageSize: number; pageCount: number; total: number; }; }>; remove: (file: File) => Promise; getSettings: () => Promise>; responsiveDimensions: import("yup/lib/boolean").RequiredBooleanSchema>; autoOrientation: import("yup").BooleanSchema, boolean | undefined>; aiMetadata: import("yup").BooleanSchema, boolean>; }> | null>; setSettings: (value: Settings) => Promise; getConfiguration: () => Promise>; sort: import("yup/lib/mixed").MixedSchema, any>; }> | null>; setConfiguration: (value: ViewConfiguration) => Promise; /** * exposed for testing only * @internal */ _uploadImage: (fileData: UploadableFile) => Promise; }; export default _default; //# sourceMappingURL=upload.d.ts.map