///
import type { Readable } from 'node:stream';
import type { AbstractServiceOptions, File, Metadata, MutationOptions, PrimaryKey } from '../types/index.js';
import { ItemsService } from './items.js';
export declare class FilesService extends ItemsService {
constructor(options: AbstractServiceOptions);
/**
* Upload a single new file to the configured storage adapter
*/
uploadOne(stream: Readable, data: Partial & {
storage: string;
}, primaryKey?: PrimaryKey, opts?: MutationOptions): Promise;
/**
* Extract metadata from a buffer's content
*/
getMetadata(stream: Readable, allowList?: any): Promise;
/**
* Import a single file from an external URL
*/
importOne(importURL: string, body: Partial): Promise;
/**
* Create a file (only applicable when it is not a multipart/data POST request)
* Useful for associating metadata with existing file in storage
*/
createOne(data: Partial, opts?: MutationOptions): Promise;
/**
* Delete a file
*/
deleteOne(key: PrimaryKey, opts?: MutationOptions): Promise;
/**
* Delete multiple files
*/
deleteMany(keys: PrimaryKey[], opts?: MutationOptions): Promise;
}