index.d.ts 1.2 KB

123456789101112131415161718192021222324252627
  1. import { CoreFileSystemDirectoryHandle } from './CoreFileSystemDirectoryHandle';
  2. import { CoreFsaContext } from './types';
  3. import { Superblock } from '../core/Superblock';
  4. export * from './types';
  5. export * from './CoreFileSystemHandle';
  6. export * from './CoreFileSystemDirectoryHandle';
  7. export * from './CoreFileSystemFileHandle';
  8. export * from './CoreFileSystemSyncAccessHandle';
  9. export * from './CoreFileSystemWritableFileStream';
  10. export * from './CorePermissionStatus';
  11. /**
  12. * Creates a File System Access API implementation on top of a Superblock.
  13. */
  14. export declare const coreToFsa: (core: Superblock, dirPath?: string, ctx?: Partial<CoreFsaContext>) => CoreFileSystemDirectoryHandle;
  15. /**
  16. * Create a new instance of an in-memory File System Access API
  17. * implementation rooted at the root directory of the filesystem.
  18. *
  19. * @param ctx Optional context for the File System Access API.
  20. * @returns A File System Access API implementation `dir` rooted at
  21. * the root directory of the filesystem, as well as the `core`
  22. * file system itself.
  23. */
  24. export declare const fsa: (ctx?: Partial<CoreFsaContext>) => {
  25. dir: CoreFileSystemDirectoryHandle;
  26. core: Superblock;
  27. };