UNPKG

@chris.troutner/ipfs-message-port-server

Version:
35 lines 1.24 kB
export type IPFS = import('@chris.troutner/ipfs-core-types').IPFS; export type StatOptions = import('@chris.troutner/ipfs-core-types/src/files').StatOptions; export type EncodedStat = import('@chris.troutner/ipfs-message-port-protocol/src/files').EncodedStat; export class FilesService { /** * * @param {IPFS} ipfs */ constructor(ipfs: IPFS); ipfs: import("@chris.troutner/ipfs-core-types").IPFS; /** * @typedef {Object} StatQuery * @property {string} path * * @param {StatOptions & StatQuery} input */ stat(input: import("@chris.troutner/ipfs-core-types/src/files").StatOptions & { path: string; }): Promise<{ stat: { cid: import("@chris.troutner/ipfs-message-port-protocol/src/cid").EncodedCID; size: number; cumulativeSize: number; type: "file" | "directory"; blocks: number; withLocality: boolean; local?: boolean | undefined; sizeLocal?: number | undefined; mode?: number | undefined; mtime?: import("ipfs-unixfs/dist/src/types").Mtime | undefined; }; transfer: Transferable[]; }>; } //# sourceMappingURL=files.d.ts.map