/** * @module util/media/toFiles */ import schema from '@stencila/schema'; /** * Transform a `Node` by writing any media to a file in a specified directory. * * If `docPath === undefined`, then no files are written, and the `contentUrl` * of each `MediaObject` is set to `#`. This is intended for the case where * content is being generated, but is not intended for distribution e.g. during testing. * * @param docPath The path to the document. * @param protocols The URI protocols to write to file e.g. `['file']` for files only * * @see fromFiles * @see unlinkFiles */ export declare function toFiles(node: schema.Node, docPath: string, protocols?: string[]): Promise;