import { JavaClass } from "java-bridge"; import { Long as java_lang_Long } from "./../../lang/Long"; import { ByteBuffer as java_nio_ByteBuffer } from "./../ByteBuffer"; /** * This class just defines types, you should import SeekableByteChannel instead of this. * This was generated by java-bridge. * You should probably not edit this. */ export declare class SeekableByteChannelClass extends JavaClass { /** * @return original return type: 'long' */ size(): Promise; /** * @return original return type: 'long' */ sizeSync(): number; /** * @param var0 original type: 'long' * @return original return type: 'java.nio.channels.SeekableByteChannel' */ position(var0: java_lang_Long | bigint | number): Promise; /** * @param var0 original type: 'long' * @return original return type: 'java.nio.channels.SeekableByteChannel' */ positionSync(var0: java_lang_Long | bigint | number): SeekableByteChannel | null; /** * @return original return type: 'long' */ position(): Promise; /** * @return original return type: 'long' */ positionSync(): number; /** * @param var0 original type: 'java.nio.ByteBuffer' * @return original return type: 'int' */ write(var0: java_nio_ByteBuffer | null): Promise; /** * @param var0 original type: 'java.nio.ByteBuffer' * @return original return type: 'int' */ writeSync(var0: java_nio_ByteBuffer | null): number; /** * @param var0 original type: 'java.nio.ByteBuffer' * @return original return type: 'int' */ read(var0: java_nio_ByteBuffer | null): Promise; /** * @param var0 original type: 'java.nio.ByteBuffer' * @return original return type: 'int' */ readSync(var0: java_nio_ByteBuffer | null): number; /** * @param var0 original type: 'long' * @return original return type: 'java.nio.channels.SeekableByteChannel' */ truncate(var0: java_lang_Long | bigint | number): Promise; /** * @param var0 original type: 'long' * @return original return type: 'java.nio.channels.SeekableByteChannel' */ truncateSync(var0: java_lang_Long | bigint | number): SeekableByteChannel | null; /** * @return original return type: 'void' */ close(): Promise; /** * @return original return type: 'void' */ closeSync(): void; /** * @return original return type: 'boolean' */ isOpen(): Promise; /** * @return original return type: 'boolean' */ isOpenSync(): boolean; } declare const SeekableByteChannel_base: typeof SeekableByteChannelClass; /** * Class java.nio.channels.SeekableByteChannel. * * This actually imports the java class for further use. * The class SeekableByteChannelClass 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 SeekableByteChannel extends SeekableByteChannel_base { /** * Private constructor to prevent instantiation * as this is either an abstract class or an interface */ private constructor(); } export default SeekableByteChannel; //# sourceMappingURL=SeekableByteChannel.d.ts.map