index.d.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. export {};
  2. declare global {
  3. interface Window {
  4. setup: () => Promise<{
  5. mock: {
  6. sampleCID: typeof import("../mock").sampleCID;
  7. CID: typeof import("../mock").CID,
  8. MemoryBlockStore: typeof import("../mock").MemoryBlockStore;
  9. Sha256BlockStore: typeof import("../mock").Sha256BlockStore;
  10. Rng: typeof import("../mock").Rng;
  11. ExchangeKey: typeof import("../mock").ExchangeKey;
  12. PrivateKey: typeof import("../mock").PrivateKey;
  13. createSharerDir: typeof import("../mock").createSharerDir;
  14. createRecipientExchangeRoot: typeof import("../mock").createRecipientExchangeRoot;
  15. };
  16. wnfs: {
  17. PublicDirectory: typeof import("../../dist/bundler/wnfs_wasm").PublicDirectory;
  18. PublicFile: typeof import("../../dist/bundler/wnfs_wasm").PublicFile;
  19. PublicNode: typeof import("../../dist/bundler/wnfs_wasm").PublicNode;
  20. PrivateDirectory: typeof import("../../dist/bundler/wnfs_wasm").PrivateDirectory;
  21. PrivateForest: typeof import("../../dist/bundler/wnfs_wasm").PrivateForest;
  22. PrivateFile: typeof import("../../dist/bundler/wnfs_wasm").PrivateFile;
  23. PrivateNode: typeof import("../../dist/bundler/wnfs_wasm").PrivateNode;
  24. Name: typeof import("../../dist/bundler/wnfs_wasm").Name;
  25. NameAccumulator: typeof import("../../dist/bundler/wnfs_wasm").NameAccumulator;
  26. AccessKey: typeof import("../../dist/bundler/wnfs_wasm").AccessKey;
  27. share: typeof import("../../dist/bundler/wnfs_wasm").share;
  28. findLatestShareCounter: typeof import("../../dist/bundler/wnfs_wasm").findLatestShareCounter;
  29. receiveShare: typeof import("../../dist/bundler/wnfs_wasm").receiveShare;
  30. createShareName: typeof import("../../dist/bundler/wnfs_wasm").createShareName;
  31. };
  32. setPanicHook: typeof import("../../dist/bundler/wnfs_wasm").setPanicHook;
  33. }>;
  34. }
  35. }