Switch to .mts files and build typescript bindings in genbindings.sh
[ldk-java] / ts / node / fs.d.ts
1 // Minimal subset of the node 'fs' library that we depend on.
2 // May be (c) Microsoft licensed under the MIT license, but API's are generally not copyrightable per recent precedent.
3 declare module 'fs' {
4     export type PathLike = string | Buffer | URL;
5     export type PathOrFileDescriptor = PathLike | number;
6     export function readFileSync(
7         path: PathOrFileDescriptor,
8         options?: {
9             encoding?: null | undefined;
10             flag?: string | undefined;
11         } | null
12     ): Buffer;
13 }
14 declare module 'node:fs' {
15     export * from 'fs';
16 }