/**
 * Copyright © 2019 Johnson & Johnson
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { Tree } from './type';
declare type Props = {
    paths: Tree;
    loc: string;
};
declare type Copier = (docPath: string, filePath: string) => Promise<void>;
/**
 * Copies a documentation file or resource to a location within the docs structure.
 *
 * @param docPath The absolute path of the source document.
 * @param filePath The path of the target document relative to `process.cwd`
 */
declare const copyFile: Copier;
/**
 * Symlinks a documentation file or resource to a location within the docs structure.
 *
 * @param docPath The absolute path of the source document.
 * @param filePath The path of the target document relative to `process.cwd`
 */
declare const symlinkFile: Copier;
/**
 * Copies or symlinks all doc files from a `Tree` object to their correct locations in the
 * documentation file hierarchy.
 *
 * @param props.loc The path of the root of the target doc hierarchy, relative to `process.cwd`
 * @param props.paths The `Tree` object describing the hierarchy and source file locations.
 */
declare const writeTree: (props: Props, copier: Copier) => Promise<any[]>;
/**
 * Copies or symlinks docsify resources to the root of the docs tree.
 *
 * @param loc The path of the root directory of the docs tree, relative to `process.cwd`.
 */
declare const writeResources: (loc: string, copier: Copier) => Promise<void>[];
export { writeTree, writeResources, copyFile, symlinkFile, };
export type { Copier };
//# sourceMappingURL=write.d.ts.map