/** * A class that implements the `FileList` interface. * This class facilitates easy creation of `FileList` mocks, for UTs. * * @export */ export declare class FakeFileList implements FileList { files: File[]; [index: number]: File; /** * The total file count. * */ get length(): number; /** * Creates a `mock` for `FileList` in order to easily test file centric scenarios with `input`s. * * @param [files=[]] A list of files. * @returns The mocked `FileList` instance. */ constructor(files?: File[]); [Symbol.iterator](): IterableIterator; /** * Retrieve an item at the specified index. * * @param idx The accesed index. * @returns The file at the requested `idx`. */ item(idx: number): File; /** * Add files to the collection. * * @param files The files that will be added to the collection. */ add(...files: File[]): void; }