declare function _exports(context: any): (path: string, content: string | Uint8Array | AsyncIterable | Blob, options?: (WriteOptions & import("../../utils").AbortOptions) | undefined) => Promise; export = _exports; export type WriteOptions = { /** * - An offset to start writing to file at */ offset?: number | undefined; /** * - Optionally limit how many bytes are read from the stream */ length?: number | undefined; /** * - Create the MFS path if it does not exist */ create?: boolean | undefined; /** * - Create intermediate MFS paths if they do not exist */ parents?: boolean | undefined; /** * - Truncate the file at the MFS path if it would have been larger than the passed content */ truncate?: boolean | undefined; /** * - If true, DAG leaves will contain raw file data and not be wrapped in a protobuf */ rawLeaves?: boolean | undefined; /** * - An integer that represents the file mode */ mode?: number | undefined; /** * - A Date object, an object with `{ secs, nsecs }` properties where secs is the number of seconds since (positive) or before (negative) the Unix Epoch began and nsecs is the number of nanoseconds since the last full second, or the output of `process.hrtime() */ mtime?: Date | import("../../utils").Mtime | [number, number] | undefined; /** * - If true the changes will be immediately flushed to disk */ flush?: boolean | undefined; /** * - The hash algorithm to use for any updated entries */ hashAlg?: string | undefined; /** * - The CID version to use for any updated entries */ cidVersion?: 0 | 1 | undefined; }; export type AbortOptions = { /** * - A timeout in ms */ timeout?: number | undefined; /** * - Can be used to cancel any long running requests started as a result of this call */ signal?: AbortSignal | undefined; }; export type Mtime = { secs?: number | undefined; nsecs?: number | undefined; }; export type Hrtime = [number, number]; //# sourceMappingURL=write.d.ts.map