index.d.ts 774 B

1234567891011121314151617181920
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. /// <reference path="../v8.d.ts" />
  8. /// <reference types="node" />
  9. declare type Path = string;
  10. export declare function deserialize(buffer: Buffer): unknown;
  11. export declare function serialize(content: unknown): Buffer;
  12. export declare function readFileSync(filePath: Path): unknown;
  13. export declare function writeFileSync(filePath: Path, content: unknown): void;
  14. declare const _default: {
  15. deserialize: typeof deserialize;
  16. readFileSync: typeof readFileSync;
  17. serialize: typeof serialize;
  18. writeFileSync: typeof writeFileSync;
  19. };
  20. export default _default;