messages.d.ts 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. import { Nfsv4Stat, type Nfsv4LockType } from './constants';
  2. import * as structs from './structs';
  3. import type { XdrDecoder, XdrEncoder, XdrType } from '../../xdr';
  4. export type Nfsv4Operation = Nfsv4Request | Nfsv4Response;
  5. export type Nfsv4Request = Nfsv4AccessRequest | Nfsv4CloseRequest | Nfsv4CommitRequest | Nfsv4CreateRequest | Nfsv4DelegpurgeRequest | Nfsv4DelegreturnRequest | Nfsv4GetattrRequest | Nfsv4GetfhRequest | Nfsv4LinkRequest | Nfsv4LockRequest | Nfsv4LocktRequest | Nfsv4LockuRequest | Nfsv4LookupRequest | Nfsv4LookuppRequest | Nfsv4NverifyRequest | Nfsv4OpenRequest | Nfsv4OpenattrRequest | Nfsv4OpenConfirmRequest | Nfsv4OpenDowngradeRequest | Nfsv4PutfhRequest | Nfsv4PutpubfhRequest | Nfsv4PutrootfhRequest | Nfsv4ReadRequest | Nfsv4ReaddirRequest | Nfsv4ReadlinkRequest | Nfsv4RemoveRequest | Nfsv4RenameRequest | Nfsv4RenewRequest | Nfsv4RestorefhRequest | Nfsv4SavefhRequest | Nfsv4SecinfoRequest | Nfsv4SetattrRequest | Nfsv4SetclientidRequest | Nfsv4SetclientidConfirmRequest | Nfsv4VerifyRequest | Nfsv4WriteRequest | Nfsv4ReleaseLockOwnerRequest | Nfsv4IllegalRequest;
  6. export type Nfsv4Response = Nfsv4AccessResponse | Nfsv4CloseResponse | Nfsv4CommitResponse | Nfsv4CreateResponse | Nfsv4DelegpurgeResponse | Nfsv4DelegreturnResponse | Nfsv4GetattrResponse | Nfsv4GetfhResponse | Nfsv4LinkResponse | Nfsv4LockResponse | Nfsv4LocktResponse | Nfsv4LockuResponse | Nfsv4LookupResponse | Nfsv4LookuppResponse | Nfsv4NverifyResponse | Nfsv4OpenResponse | Nfsv4OpenattrResponse | Nfsv4OpenConfirmResponse | Nfsv4OpenDowngradeResponse | Nfsv4PutfhResponse | Nfsv4PutpubfhResponse | Nfsv4PutrootfhResponse | Nfsv4ReadResponse | Nfsv4ReaddirResponse | Nfsv4ReadlinkResponse | Nfsv4RemoveResponse | Nfsv4RenameResponse | Nfsv4RenewResponse | Nfsv4RestorefhResponse | Nfsv4SavefhResponse | Nfsv4SecinfoResponse | Nfsv4SetattrResponse | Nfsv4SetclientidResponse | Nfsv4SetclientidConfirmResponse | Nfsv4VerifyResponse | Nfsv4WriteResponse | Nfsv4ReleaseLockOwnerResponse | Nfsv4IllegalResponse;
  7. export declare class Nfsv4AccessRequest implements XdrType {
  8. readonly access: number;
  9. static decode(xdr: XdrDecoder): Nfsv4AccessRequest;
  10. constructor(access: number);
  11. encode(xdr: XdrEncoder): void;
  12. }
  13. export declare class Nfsv4AccessResOk {
  14. readonly supported: number;
  15. readonly access: number;
  16. constructor(supported: number, access: number);
  17. encode(xdr: XdrEncoder): void;
  18. }
  19. export declare class Nfsv4AccessResponse implements XdrType {
  20. readonly status: Nfsv4Stat;
  21. readonly resok?: Nfsv4AccessResOk | undefined;
  22. constructor(status: Nfsv4Stat, resok?: Nfsv4AccessResOk | undefined);
  23. encode(xdr: XdrEncoder): void;
  24. }
  25. export declare class Nfsv4CloseRequest {
  26. readonly seqid: number;
  27. readonly openStateid: structs.Nfsv4Stateid;
  28. static decode(xdr: XdrDecoder): Nfsv4CloseRequest;
  29. constructor(seqid: number, openStateid: structs.Nfsv4Stateid);
  30. encode(xdr: XdrEncoder): void;
  31. }
  32. export declare class Nfsv4CloseResOk {
  33. readonly openStateid: structs.Nfsv4Stateid;
  34. constructor(openStateid: structs.Nfsv4Stateid);
  35. encode(xdr: XdrEncoder): void;
  36. }
  37. export declare class Nfsv4CloseResponse implements XdrType {
  38. readonly status: Nfsv4Stat;
  39. readonly resok?: Nfsv4CloseResOk | undefined;
  40. constructor(status: Nfsv4Stat, resok?: Nfsv4CloseResOk | undefined);
  41. encode(xdr: XdrEncoder): void;
  42. }
  43. export declare class Nfsv4CommitRequest implements XdrType {
  44. readonly offset: bigint;
  45. readonly count: number;
  46. static decode(xdr: XdrDecoder): Nfsv4CommitRequest;
  47. constructor(offset: bigint, count: number);
  48. encode(xdr: XdrEncoder): void;
  49. }
  50. export declare class Nfsv4CommitResOk {
  51. readonly writeverf: structs.Nfsv4Verifier;
  52. constructor(writeverf: structs.Nfsv4Verifier);
  53. encode(xdr: XdrEncoder): void;
  54. }
  55. export declare class Nfsv4CommitResponse implements XdrType {
  56. readonly status: Nfsv4Stat;
  57. readonly resok?: Nfsv4CommitResOk | undefined;
  58. constructor(status: Nfsv4Stat, resok?: Nfsv4CommitResOk | undefined);
  59. encode(xdr: XdrEncoder): void;
  60. }
  61. export declare class Nfsv4CreateRequest implements XdrType {
  62. readonly objtype: structs.Nfsv4CreateType;
  63. readonly objname: string;
  64. readonly createattrs: structs.Nfsv4Fattr;
  65. constructor(objtype: structs.Nfsv4CreateType, objname: string, createattrs: structs.Nfsv4Fattr);
  66. encode(xdr: XdrEncoder): void;
  67. }
  68. export declare class Nfsv4CreateResOk {
  69. readonly cinfo: structs.Nfsv4ChangeInfo;
  70. readonly attrset: structs.Nfsv4Bitmap;
  71. constructor(cinfo: structs.Nfsv4ChangeInfo, attrset: structs.Nfsv4Bitmap);
  72. encode(xdr: XdrEncoder): void;
  73. }
  74. export declare class Nfsv4CreateResponse implements XdrType {
  75. readonly status: Nfsv4Stat;
  76. readonly resok?: Nfsv4CreateResOk | undefined;
  77. constructor(status: Nfsv4Stat, resok?: Nfsv4CreateResOk | undefined);
  78. encode(xdr: XdrEncoder): void;
  79. }
  80. export declare class Nfsv4DelegpurgeRequest implements XdrType {
  81. readonly clientid: bigint;
  82. static decode(xdr: XdrDecoder): Nfsv4DelegpurgeRequest;
  83. constructor(clientid: bigint);
  84. encode(xdr: XdrEncoder): void;
  85. }
  86. export declare class Nfsv4DelegpurgeResponse implements XdrType {
  87. readonly status: Nfsv4Stat;
  88. constructor(status: Nfsv4Stat);
  89. encode(xdr: XdrEncoder): void;
  90. }
  91. export declare class Nfsv4DelegreturnRequest implements XdrType {
  92. readonly delegStateid: structs.Nfsv4Stateid;
  93. static decode(xdr: XdrDecoder): Nfsv4DelegreturnRequest;
  94. constructor(delegStateid: structs.Nfsv4Stateid);
  95. encode(xdr: XdrEncoder): void;
  96. }
  97. export declare class Nfsv4DelegreturnResponse implements XdrType {
  98. readonly status: Nfsv4Stat;
  99. constructor(status: Nfsv4Stat);
  100. encode(xdr: XdrEncoder): void;
  101. }
  102. export declare class Nfsv4GetattrRequest implements XdrType {
  103. readonly attrRequest: structs.Nfsv4Bitmap;
  104. constructor(attrRequest: structs.Nfsv4Bitmap);
  105. encode(xdr: XdrEncoder): void;
  106. }
  107. export declare class Nfsv4GetattrResOk {
  108. readonly objAttributes: structs.Nfsv4Fattr;
  109. constructor(objAttributes: structs.Nfsv4Fattr);
  110. encode(xdr: XdrEncoder): void;
  111. }
  112. export declare class Nfsv4GetattrResponse implements XdrType {
  113. readonly status: Nfsv4Stat;
  114. readonly resok?: Nfsv4GetattrResOk | undefined;
  115. constructor(status: Nfsv4Stat, resok?: Nfsv4GetattrResOk | undefined);
  116. encode(xdr: XdrEncoder): void;
  117. }
  118. export declare class Nfsv4GetfhRequest implements XdrType {
  119. encode(xdr: XdrEncoder): void;
  120. }
  121. export declare class Nfsv4GetfhResOk {
  122. readonly object: structs.Nfsv4Fh;
  123. constructor(object: structs.Nfsv4Fh);
  124. encode(xdr: XdrEncoder): void;
  125. }
  126. export declare class Nfsv4GetfhResponse implements XdrType {
  127. readonly status: Nfsv4Stat;
  128. readonly resok?: Nfsv4GetfhResOk | undefined;
  129. constructor(status: Nfsv4Stat, resok?: Nfsv4GetfhResOk | undefined);
  130. encode(xdr: XdrEncoder): void;
  131. }
  132. export declare class Nfsv4LinkRequest implements XdrType {
  133. readonly newname: string;
  134. constructor(newname: string);
  135. encode(xdr: XdrEncoder): void;
  136. }
  137. export declare class Nfsv4LinkResOk {
  138. readonly cinfo: structs.Nfsv4ChangeInfo;
  139. constructor(cinfo: structs.Nfsv4ChangeInfo);
  140. encode(xdr: XdrEncoder): void;
  141. }
  142. export declare class Nfsv4LinkResponse implements XdrType {
  143. readonly status: Nfsv4Stat;
  144. readonly resok?: Nfsv4LinkResOk | undefined;
  145. constructor(status: Nfsv4Stat, resok?: Nfsv4LinkResOk | undefined);
  146. encode(xdr: XdrEncoder): void;
  147. }
  148. export declare class Nfsv4LockRequest implements XdrType {
  149. readonly locktype: Nfsv4LockType;
  150. readonly reclaim: boolean;
  151. readonly offset: bigint;
  152. readonly length: bigint;
  153. readonly locker: structs.Nfsv4LockOwnerInfo;
  154. constructor(locktype: Nfsv4LockType, reclaim: boolean, offset: bigint, length: bigint, locker: structs.Nfsv4LockOwnerInfo);
  155. encode(xdr: XdrEncoder): void;
  156. }
  157. export declare class Nfsv4LockResOk {
  158. readonly lockStateid: structs.Nfsv4Stateid;
  159. constructor(lockStateid: structs.Nfsv4Stateid);
  160. encode(xdr: XdrEncoder): void;
  161. }
  162. export declare class Nfsv4LockResDenied {
  163. readonly offset: bigint;
  164. readonly length: bigint;
  165. readonly locktype: Nfsv4LockType;
  166. readonly owner: structs.Nfsv4LockOwner;
  167. constructor(offset: bigint, length: bigint, locktype: Nfsv4LockType, owner: structs.Nfsv4LockOwner);
  168. encode(xdr: XdrEncoder): void;
  169. }
  170. export declare class Nfsv4LockResponse implements XdrType {
  171. readonly status: Nfsv4Stat;
  172. readonly resok?: Nfsv4LockResOk | undefined;
  173. readonly denied?: Nfsv4LockResDenied | undefined;
  174. constructor(status: Nfsv4Stat, resok?: Nfsv4LockResOk | undefined, denied?: Nfsv4LockResDenied | undefined);
  175. encode(xdr: XdrEncoder): void;
  176. }
  177. export declare class Nfsv4LocktRequest implements XdrType {
  178. readonly locktype: Nfsv4LockType;
  179. readonly offset: bigint;
  180. readonly length: bigint;
  181. readonly owner: structs.Nfsv4LockOwner;
  182. constructor(locktype: Nfsv4LockType, offset: bigint, length: bigint, owner: structs.Nfsv4LockOwner);
  183. encode(xdr: XdrEncoder): void;
  184. }
  185. export declare class Nfsv4LocktResDenied {
  186. readonly offset: bigint;
  187. readonly length: bigint;
  188. readonly locktype: Nfsv4LockType;
  189. readonly owner: structs.Nfsv4LockOwner;
  190. constructor(offset: bigint, length: bigint, locktype: Nfsv4LockType, owner: structs.Nfsv4LockOwner);
  191. encode(xdr: XdrEncoder): void;
  192. }
  193. export declare class Nfsv4LocktResponse implements XdrType {
  194. readonly status: Nfsv4Stat;
  195. readonly denied?: Nfsv4LocktResDenied | undefined;
  196. constructor(status: Nfsv4Stat, denied?: Nfsv4LocktResDenied | undefined);
  197. encode(xdr: XdrEncoder): void;
  198. }
  199. export declare class Nfsv4LockuRequest implements XdrType {
  200. readonly locktype: Nfsv4LockType;
  201. readonly seqid: number;
  202. readonly lockStateid: structs.Nfsv4Stateid;
  203. readonly offset: bigint;
  204. readonly length: bigint;
  205. constructor(locktype: Nfsv4LockType, seqid: number, lockStateid: structs.Nfsv4Stateid, offset: bigint, length: bigint);
  206. encode(xdr: XdrEncoder): void;
  207. }
  208. export declare class Nfsv4LockuResOk {
  209. readonly lockStateid: structs.Nfsv4Stateid;
  210. constructor(lockStateid: structs.Nfsv4Stateid);
  211. encode(xdr: XdrEncoder): void;
  212. }
  213. export declare class Nfsv4LockuResponse implements XdrType {
  214. readonly status: Nfsv4Stat;
  215. readonly resok?: Nfsv4LockuResOk | undefined;
  216. constructor(status: Nfsv4Stat, resok?: Nfsv4LockuResOk | undefined);
  217. encode(xdr: XdrEncoder): void;
  218. }
  219. export declare class Nfsv4LookupRequest implements XdrType {
  220. readonly objname: string;
  221. constructor(objname: string);
  222. encode(xdr: XdrEncoder): void;
  223. }
  224. export declare class Nfsv4LookupResponse implements XdrType {
  225. readonly status: Nfsv4Stat;
  226. constructor(status: Nfsv4Stat);
  227. encode(xdr: XdrEncoder): void;
  228. }
  229. export declare class Nfsv4LookuppRequest implements XdrType {
  230. encode(xdr: XdrEncoder): void;
  231. }
  232. export declare class Nfsv4LookuppResponse implements XdrType {
  233. readonly status: Nfsv4Stat;
  234. constructor(status: Nfsv4Stat);
  235. encode(xdr: XdrEncoder): void;
  236. }
  237. export declare class Nfsv4NverifyRequest implements XdrType {
  238. readonly objAttributes: structs.Nfsv4Fattr;
  239. constructor(objAttributes: structs.Nfsv4Fattr);
  240. encode(xdr: XdrEncoder): void;
  241. }
  242. export declare class Nfsv4NverifyResponse implements XdrType {
  243. readonly status: Nfsv4Stat;
  244. constructor(status: Nfsv4Stat);
  245. encode(xdr: XdrEncoder): void;
  246. }
  247. export declare class Nfsv4OpenRequest implements XdrType {
  248. readonly seqid: number;
  249. readonly shareAccess: number;
  250. readonly shareDeny: number;
  251. readonly owner: structs.Nfsv4OpenOwner;
  252. readonly openhow: structs.Nfsv4OpenHow;
  253. readonly claim: structs.Nfsv4OpenClaim;
  254. constructor(seqid: number, shareAccess: number, shareDeny: number, owner: structs.Nfsv4OpenOwner, openhow: structs.Nfsv4OpenHow, claim: structs.Nfsv4OpenClaim);
  255. encode(xdr: XdrEncoder): void;
  256. }
  257. export declare class Nfsv4OpenResOk {
  258. readonly stateid: structs.Nfsv4Stateid;
  259. readonly cinfo: structs.Nfsv4ChangeInfo;
  260. readonly rflags: number;
  261. readonly attrset: structs.Nfsv4Bitmap;
  262. readonly delegation: structs.Nfsv4OpenDelegation;
  263. constructor(stateid: structs.Nfsv4Stateid, cinfo: structs.Nfsv4ChangeInfo, rflags: number, attrset: structs.Nfsv4Bitmap, delegation: structs.Nfsv4OpenDelegation);
  264. encode(xdr: XdrEncoder): void;
  265. }
  266. export declare class Nfsv4OpenResponse implements XdrType {
  267. readonly status: Nfsv4Stat;
  268. readonly resok?: Nfsv4OpenResOk | undefined;
  269. constructor(status: Nfsv4Stat, resok?: Nfsv4OpenResOk | undefined);
  270. encode(xdr: XdrEncoder): void;
  271. }
  272. export declare class Nfsv4OpenattrRequest implements XdrType {
  273. readonly createdir: boolean;
  274. constructor(createdir: boolean);
  275. encode(xdr: XdrEncoder): void;
  276. }
  277. export declare class Nfsv4OpenattrResponse implements XdrType {
  278. readonly status: Nfsv4Stat;
  279. constructor(status: Nfsv4Stat);
  280. encode(xdr: XdrEncoder): void;
  281. }
  282. export declare class Nfsv4OpenConfirmRequest implements XdrType {
  283. readonly openStateid: structs.Nfsv4Stateid;
  284. readonly seqid: number;
  285. constructor(openStateid: structs.Nfsv4Stateid, seqid: number);
  286. encode(xdr: XdrEncoder): void;
  287. }
  288. export declare class Nfsv4OpenConfirmResOk {
  289. readonly openStateid: structs.Nfsv4Stateid;
  290. constructor(openStateid: structs.Nfsv4Stateid);
  291. encode(xdr: XdrEncoder): void;
  292. }
  293. export declare class Nfsv4OpenConfirmResponse implements XdrType {
  294. readonly status: Nfsv4Stat;
  295. readonly resok?: Nfsv4OpenConfirmResOk | undefined;
  296. constructor(status: Nfsv4Stat, resok?: Nfsv4OpenConfirmResOk | undefined);
  297. encode(xdr: XdrEncoder): void;
  298. }
  299. export declare class Nfsv4OpenDowngradeRequest implements XdrType {
  300. readonly openStateid: structs.Nfsv4Stateid;
  301. readonly seqid: number;
  302. readonly shareAccess: number;
  303. readonly shareDeny: number;
  304. constructor(openStateid: structs.Nfsv4Stateid, seqid: number, shareAccess: number, shareDeny: number);
  305. encode(xdr: XdrEncoder): void;
  306. }
  307. export declare class Nfsv4OpenDowngradeResOk {
  308. readonly openStateid: structs.Nfsv4Stateid;
  309. constructor(openStateid: structs.Nfsv4Stateid);
  310. encode(xdr: XdrEncoder): void;
  311. }
  312. export declare class Nfsv4OpenDowngradeResponse implements XdrType {
  313. readonly status: Nfsv4Stat;
  314. readonly resok?: Nfsv4OpenDowngradeResOk | undefined;
  315. constructor(status: Nfsv4Stat, resok?: Nfsv4OpenDowngradeResOk | undefined);
  316. encode(xdr: XdrEncoder): void;
  317. }
  318. export declare class Nfsv4PutfhRequest implements XdrType {
  319. readonly object: structs.Nfsv4Fh;
  320. constructor(object: structs.Nfsv4Fh);
  321. encode(xdr: XdrEncoder): void;
  322. }
  323. export declare class Nfsv4PutfhResponse implements XdrType {
  324. readonly status: Nfsv4Stat;
  325. constructor(status: Nfsv4Stat);
  326. encode(xdr: XdrEncoder): void;
  327. }
  328. export declare class Nfsv4PutpubfhRequest implements XdrType {
  329. encode(xdr: XdrEncoder): void;
  330. }
  331. export declare class Nfsv4PutpubfhResponse implements XdrType {
  332. readonly status: Nfsv4Stat;
  333. static decode(xdr: XdrDecoder): Nfsv4PutpubfhResponse;
  334. constructor(status: Nfsv4Stat);
  335. encode(xdr: XdrEncoder): void;
  336. }
  337. export declare class Nfsv4PutrootfhRequest implements XdrType {
  338. encode(xdr: XdrEncoder): void;
  339. }
  340. export declare class Nfsv4PutrootfhResponse implements XdrType {
  341. readonly status: Nfsv4Stat;
  342. constructor(status: Nfsv4Stat);
  343. encode(xdr: XdrEncoder): void;
  344. }
  345. export declare class Nfsv4ReadRequest implements XdrType {
  346. readonly stateid: structs.Nfsv4Stateid;
  347. readonly offset: bigint;
  348. readonly count: number;
  349. constructor(stateid: structs.Nfsv4Stateid, offset: bigint, count: number);
  350. encode(xdr: XdrEncoder): void;
  351. }
  352. export declare class Nfsv4ReadResOk {
  353. readonly eof: boolean;
  354. readonly data: Uint8Array;
  355. constructor(eof: boolean, data: Uint8Array);
  356. encode(xdr: XdrEncoder): void;
  357. }
  358. export declare class Nfsv4ReadResponse implements XdrType {
  359. readonly status: Nfsv4Stat;
  360. readonly resok?: Nfsv4ReadResOk | undefined;
  361. constructor(status: Nfsv4Stat, resok?: Nfsv4ReadResOk | undefined);
  362. encode(xdr: XdrEncoder): void;
  363. }
  364. export declare class Nfsv4ReaddirRequest implements XdrType {
  365. readonly cookie: bigint;
  366. readonly cookieverf: structs.Nfsv4Verifier;
  367. readonly dircount: number;
  368. readonly maxcount: number;
  369. readonly attrRequest: structs.Nfsv4Bitmap;
  370. constructor(cookie: bigint, cookieverf: structs.Nfsv4Verifier, dircount: number, maxcount: number, attrRequest: structs.Nfsv4Bitmap);
  371. encode(xdr: XdrEncoder): void;
  372. }
  373. export declare class Nfsv4ReaddirResOk {
  374. readonly cookieverf: structs.Nfsv4Verifier;
  375. readonly entries: structs.Nfsv4Entry[];
  376. readonly eof: boolean;
  377. constructor(cookieverf: structs.Nfsv4Verifier, entries: structs.Nfsv4Entry[], eof: boolean);
  378. encode(xdr: XdrEncoder): void;
  379. }
  380. export declare class Nfsv4ReaddirResponse implements XdrType {
  381. readonly status: Nfsv4Stat;
  382. readonly resok?: Nfsv4ReaddirResOk | undefined;
  383. constructor(status: Nfsv4Stat, resok?: Nfsv4ReaddirResOk | undefined);
  384. encode(xdr: XdrEncoder): void;
  385. }
  386. export declare class Nfsv4ReadlinkRequest implements XdrType {
  387. encode(xdr: XdrEncoder): void;
  388. }
  389. export declare class Nfsv4ReadlinkResOk {
  390. readonly link: string;
  391. constructor(link: string);
  392. encode(xdr: XdrEncoder): void;
  393. }
  394. export declare class Nfsv4ReadlinkResponse implements XdrType {
  395. readonly status: Nfsv4Stat;
  396. readonly resok?: Nfsv4ReadlinkResOk | undefined;
  397. constructor(status: Nfsv4Stat, resok?: Nfsv4ReadlinkResOk | undefined);
  398. encode(xdr: XdrEncoder): void;
  399. }
  400. export declare class Nfsv4RemoveRequest implements XdrType {
  401. readonly target: string;
  402. constructor(target: string);
  403. encode(xdr: XdrEncoder): void;
  404. }
  405. export declare class Nfsv4RemoveResOk {
  406. readonly cinfo: structs.Nfsv4ChangeInfo;
  407. constructor(cinfo: structs.Nfsv4ChangeInfo);
  408. encode(xdr: XdrEncoder): void;
  409. }
  410. export declare class Nfsv4RemoveResponse implements XdrType {
  411. readonly status: Nfsv4Stat;
  412. readonly resok?: Nfsv4RemoveResOk | undefined;
  413. constructor(status: Nfsv4Stat, resok?: Nfsv4RemoveResOk | undefined);
  414. encode(xdr: XdrEncoder): void;
  415. }
  416. export declare class Nfsv4RenameRequest implements XdrType {
  417. readonly oldname: string;
  418. readonly newname: string;
  419. constructor(oldname: string, newname: string);
  420. encode(xdr: XdrEncoder): void;
  421. }
  422. export declare class Nfsv4RenameResOk {
  423. readonly sourceCinfo: structs.Nfsv4ChangeInfo;
  424. readonly targetCinfo: structs.Nfsv4ChangeInfo;
  425. constructor(sourceCinfo: structs.Nfsv4ChangeInfo, targetCinfo: structs.Nfsv4ChangeInfo);
  426. encode(xdr: XdrEncoder): void;
  427. }
  428. export declare class Nfsv4RenameResponse implements XdrType {
  429. readonly status: Nfsv4Stat;
  430. readonly resok?: Nfsv4RenameResOk | undefined;
  431. constructor(status: Nfsv4Stat, resok?: Nfsv4RenameResOk | undefined);
  432. encode(xdr: XdrEncoder): void;
  433. }
  434. export declare class Nfsv4RenewRequest implements XdrType {
  435. readonly clientid: bigint;
  436. constructor(clientid: bigint);
  437. encode(xdr: XdrEncoder): void;
  438. }
  439. export declare class Nfsv4RenewResponse implements XdrType {
  440. readonly status: Nfsv4Stat;
  441. constructor(status: Nfsv4Stat);
  442. encode(xdr: XdrEncoder): void;
  443. }
  444. export declare class Nfsv4RestorefhRequest implements XdrType {
  445. encode(xdr: XdrEncoder): void;
  446. }
  447. export declare class Nfsv4RestorefhResponse implements XdrType {
  448. readonly status: Nfsv4Stat;
  449. constructor(status: Nfsv4Stat);
  450. encode(xdr: XdrEncoder): void;
  451. }
  452. export declare class Nfsv4SavefhRequest implements XdrType {
  453. encode(xdr: XdrEncoder): void;
  454. }
  455. export declare class Nfsv4SavefhResponse implements XdrType {
  456. readonly status: Nfsv4Stat;
  457. constructor(status: Nfsv4Stat);
  458. encode(xdr: XdrEncoder): void;
  459. }
  460. export declare class Nfsv4SecinfoRequest implements XdrType {
  461. readonly name: string;
  462. constructor(name: string);
  463. encode(xdr: XdrEncoder): void;
  464. }
  465. export declare class Nfsv4SecinfoResOk {
  466. readonly flavors: structs.Nfsv4SecInfoFlavor[];
  467. constructor(flavors: structs.Nfsv4SecInfoFlavor[]);
  468. encode(xdr: XdrEncoder): void;
  469. }
  470. export declare class Nfsv4SecinfoResponse implements XdrType {
  471. readonly status: Nfsv4Stat;
  472. readonly resok?: Nfsv4SecinfoResOk | undefined;
  473. constructor(status: Nfsv4Stat, resok?: Nfsv4SecinfoResOk | undefined);
  474. encode(xdr: XdrEncoder): void;
  475. }
  476. export declare class Nfsv4SetattrRequest implements XdrType {
  477. readonly stateid: structs.Nfsv4Stateid;
  478. readonly objAttributes: structs.Nfsv4Fattr;
  479. constructor(stateid: structs.Nfsv4Stateid, objAttributes: structs.Nfsv4Fattr);
  480. encode(xdr: XdrEncoder): void;
  481. }
  482. export declare class Nfsv4SetattrResOk {
  483. readonly attrsset: structs.Nfsv4Bitmap;
  484. constructor(attrsset: structs.Nfsv4Bitmap);
  485. encode(xdr: XdrEncoder): void;
  486. }
  487. export declare class Nfsv4SetattrResponse implements XdrType {
  488. readonly status: Nfsv4Stat;
  489. readonly resok?: Nfsv4SetattrResOk | undefined;
  490. constructor(status: Nfsv4Stat, resok?: Nfsv4SetattrResOk | undefined);
  491. encode(xdr: XdrEncoder): void;
  492. }
  493. export declare class Nfsv4SetclientidRequest implements XdrType {
  494. readonly client: structs.Nfsv4ClientId;
  495. readonly callback: structs.Nfsv4CbClient;
  496. readonly callbackIdent: number;
  497. constructor(client: structs.Nfsv4ClientId, callback: structs.Nfsv4CbClient, callbackIdent: number);
  498. encode(xdr: XdrEncoder): void;
  499. }
  500. export declare class Nfsv4SetclientidResOk {
  501. readonly clientid: bigint;
  502. readonly setclientidConfirm: structs.Nfsv4Verifier;
  503. constructor(clientid: bigint, setclientidConfirm: structs.Nfsv4Verifier);
  504. encode(xdr: XdrEncoder): void;
  505. }
  506. export declare class Nfsv4SetclientidResponse implements XdrType {
  507. readonly status: Nfsv4Stat;
  508. readonly resok?: Nfsv4SetclientidResOk | undefined;
  509. constructor(status: Nfsv4Stat, resok?: Nfsv4SetclientidResOk | undefined);
  510. encode(xdr: XdrEncoder): void;
  511. }
  512. export declare class Nfsv4SetclientidConfirmRequest implements XdrType {
  513. readonly clientid: bigint;
  514. readonly setclientidConfirm: structs.Nfsv4Verifier;
  515. constructor(clientid: bigint, setclientidConfirm: structs.Nfsv4Verifier);
  516. encode(xdr: XdrEncoder): void;
  517. }
  518. export declare class Nfsv4SetclientidConfirmResponse implements XdrType {
  519. readonly status: Nfsv4Stat;
  520. constructor(status: Nfsv4Stat);
  521. encode(xdr: XdrEncoder): void;
  522. }
  523. export declare class Nfsv4VerifyRequest implements XdrType {
  524. readonly objAttributes: structs.Nfsv4Fattr;
  525. constructor(objAttributes: structs.Nfsv4Fattr);
  526. encode(xdr: XdrEncoder): void;
  527. }
  528. export declare class Nfsv4VerifyResponse implements XdrType {
  529. readonly status: Nfsv4Stat;
  530. constructor(status: Nfsv4Stat);
  531. encode(xdr: XdrEncoder): void;
  532. }
  533. export declare class Nfsv4WriteRequest implements XdrType {
  534. readonly stateid: structs.Nfsv4Stateid;
  535. readonly offset: bigint;
  536. readonly stable: number;
  537. readonly data: Uint8Array;
  538. constructor(stateid: structs.Nfsv4Stateid, offset: bigint, stable: number, data: Uint8Array);
  539. encode(xdr: XdrEncoder): void;
  540. }
  541. export declare class Nfsv4WriteResOk {
  542. readonly count: number;
  543. readonly committed: number;
  544. readonly writeverf: structs.Nfsv4Verifier;
  545. constructor(count: number, committed: number, writeverf: structs.Nfsv4Verifier);
  546. encode(xdr: XdrEncoder): void;
  547. }
  548. export declare class Nfsv4WriteResponse implements XdrType {
  549. readonly status: Nfsv4Stat;
  550. readonly resok?: Nfsv4WriteResOk | undefined;
  551. constructor(status: Nfsv4Stat, resok?: Nfsv4WriteResOk | undefined);
  552. encode(xdr: XdrEncoder): void;
  553. }
  554. export declare class Nfsv4ReleaseLockOwnerRequest implements XdrType {
  555. readonly lockOwner: structs.Nfsv4LockOwner;
  556. constructor(lockOwner: structs.Nfsv4LockOwner);
  557. encode(xdr: XdrEncoder): void;
  558. }
  559. export declare class Nfsv4ReleaseLockOwnerResponse implements XdrType {
  560. readonly status: Nfsv4Stat;
  561. constructor(status: Nfsv4Stat);
  562. encode(xdr: XdrEncoder): void;
  563. }
  564. export declare class Nfsv4IllegalRequest implements XdrType {
  565. encode(xdr: XdrEncoder): void;
  566. }
  567. export declare class Nfsv4IllegalResponse implements XdrType {
  568. readonly status: Nfsv4Stat;
  569. constructor(status: Nfsv4Stat);
  570. encode(xdr: XdrEncoder): void;
  571. }
  572. export declare class Nfsv4CompoundRequest implements XdrType {
  573. readonly tag: string;
  574. readonly minorversion: number;
  575. readonly argarray: Nfsv4Request[];
  576. constructor(tag: string, minorversion: number, argarray: Nfsv4Request[]);
  577. encode(xdr: XdrEncoder): void;
  578. }
  579. export declare class Nfsv4CompoundResponse implements XdrType {
  580. readonly status: Nfsv4Stat;
  581. readonly tag: string;
  582. readonly resarray: Nfsv4Response[];
  583. constructor(status: Nfsv4Stat, tag: string, resarray: Nfsv4Response[]);
  584. encode(xdr: XdrEncoder): void;
  585. }
  586. export type Nfsv4CbOperation = Nfsv4CbRequest | Nfsv4CbResponse;
  587. export type Nfsv4CbRequest = Nfsv4CbGetattrRequest | Nfsv4CbRecallRequest | Nfsv4CbIllegalRequest;
  588. export type Nfsv4CbResponse = Nfsv4CbGetattrResponse | Nfsv4CbRecallResponse | Nfsv4CbIllegalResponse;
  589. export declare class Nfsv4CbGetattrRequest implements XdrType {
  590. readonly fh: structs.Nfsv4Fh;
  591. readonly attrRequest: structs.Nfsv4Bitmap;
  592. constructor(fh: structs.Nfsv4Fh, attrRequest: structs.Nfsv4Bitmap);
  593. encode(xdr: XdrEncoder): void;
  594. }
  595. export declare class Nfsv4CbGetattrResOk {
  596. readonly objAttributes: structs.Nfsv4Fattr;
  597. constructor(objAttributes: structs.Nfsv4Fattr);
  598. encode(xdr: XdrEncoder): void;
  599. }
  600. export declare class Nfsv4CbGetattrResponse implements XdrType {
  601. readonly status: Nfsv4Stat;
  602. readonly resok?: Nfsv4CbGetattrResOk | undefined;
  603. constructor(status: Nfsv4Stat, resok?: Nfsv4CbGetattrResOk | undefined);
  604. encode(xdr: XdrEncoder): void;
  605. }
  606. export declare class Nfsv4CbRecallRequest implements XdrType {
  607. readonly stateid: structs.Nfsv4Stateid;
  608. readonly truncate: boolean;
  609. readonly fh: structs.Nfsv4Fh;
  610. constructor(stateid: structs.Nfsv4Stateid, truncate: boolean, fh: structs.Nfsv4Fh);
  611. encode(xdr: XdrEncoder): void;
  612. }
  613. export declare class Nfsv4CbRecallResponse implements XdrType {
  614. readonly status: Nfsv4Stat;
  615. constructor(status: Nfsv4Stat);
  616. encode(xdr: XdrEncoder): void;
  617. }
  618. export declare class Nfsv4CbIllegalRequest implements XdrType {
  619. encode(xdr: XdrEncoder): void;
  620. }
  621. export declare class Nfsv4CbIllegalResponse implements XdrType {
  622. readonly status: Nfsv4Stat;
  623. constructor(status: Nfsv4Stat);
  624. encode(xdr: XdrEncoder): void;
  625. }
  626. export declare class Nfsv4CbCompoundRequest implements XdrType {
  627. readonly tag: string;
  628. readonly minorversion: number;
  629. readonly callbackIdent: number;
  630. readonly argarray: Nfsv4CbRequest[];
  631. constructor(tag: string, minorversion: number, callbackIdent: number, argarray: Nfsv4CbRequest[]);
  632. encode(xdr: XdrEncoder): void;
  633. }
  634. export declare class Nfsv4CbCompoundResponse implements XdrType {
  635. readonly status: Nfsv4Stat;
  636. readonly tag: string;
  637. readonly resarray: Nfsv4CbResponse[];
  638. constructor(status: Nfsv4Stat, tag: string, resarray: Nfsv4CbResponse[]);
  639. encode(xdr: XdrEncoder): void;
  640. }