import { JavaClass } from "java-bridge"; import { WatchKey as java_nio_file_WatchKey } from "./WatchKey"; import { Long as java_lang_Long } from "./../../lang/Long"; import { TimeUnit as java_util_concurrent_TimeUnit } from "./../../util/concurrent/TimeUnit"; /** * This class just defines types, you should import WatchService instead of this. * This was generated by java-bridge. * You should probably not edit this. */ export declare class WatchServiceClass extends JavaClass { /** * @return original return type: 'java.nio.file.WatchKey' */ take(): Promise; /** * @return original return type: 'java.nio.file.WatchKey' */ takeSync(): java_nio_file_WatchKey | null; /** * @param var0 original type: 'long' * @param var1 original type: 'java.util.concurrent.TimeUnit' * @return original return type: 'java.nio.file.WatchKey' */ poll(var0: java_lang_Long | bigint | number, var1: java_util_concurrent_TimeUnit | null): Promise; /** * @param var0 original type: 'long' * @param var1 original type: 'java.util.concurrent.TimeUnit' * @return original return type: 'java.nio.file.WatchKey' */ pollSync(var0: java_lang_Long | bigint | number, var1: java_util_concurrent_TimeUnit | null): java_nio_file_WatchKey | null; /** * @return original return type: 'java.nio.file.WatchKey' */ poll(): Promise; /** * @return original return type: 'java.nio.file.WatchKey' */ pollSync(): java_nio_file_WatchKey | null; /** * @return original return type: 'void' */ close(): Promise; /** * @return original return type: 'void' */ closeSync(): void; } declare const WatchService_base: typeof WatchServiceClass; /** * Class java.nio.file.WatchService. * * This actually imports the java class for further use. * The class WatchServiceClass only defines types, this is the class you should actually import. * Please note that this statement imports the underlying java class at runtime, which may take a while. * This was generated by java-bridge. * You should probably not edit this. */ export declare class WatchService extends WatchService_base { /** * Private constructor to prevent instantiation * as this is either an abstract class or an interface */ private constructor(); } export default WatchService; //# sourceMappingURL=WatchService.d.ts.map