declare namespace javax { namespace imageio { namespace spi { namespace ServiceRegistry { /** * A simple filter interface used by * ServiceRegistry.getServiceProviders to select * providers matching an arbitrary criterion. Classes that * implement this interface should be defined in order to make use * of the getServiceProviders method of * ServiceRegistry that takes a Filter. * @see ServiceRegistry#getServiceProviders(Class, ServiceRegistry.Filter, boolean) */ // @ts-ignore interface Filter { /** * Returns true if the given * provider object matches the criterion defined * by this Filter. * @param provider a service provider Object. * @return true if the provider matches the criterion. */ // @ts-ignore filter(provider: java.lang.Object | any): boolean } } } } }