import * as files from "../filesystem/index.js"; export interface PublicationConfig { /** filesystem path of the src folder */ localPath: string; /** which extension the Markdown files have when served as HTML */ publicExtension: string; /** the corresponding URL path */ publicPath: string; } /** * Publications map local folders (in the source code) to public URL paths. * This is needed when verifying Markdown code that will be published as HTML somewhere, * and the links in Markdown reference the public URLs of the Markdown pages. */ export declare class Publication implements PublicationConfig { /** filesystem path of the src folder */ readonly localPath: string; /** which extension the Markdown files have when served as HTML */ readonly publicExtension: string; /** the corresponding URL path */ readonly publicPath: string; constructor(args: { localPath: string; publicExtension: string; publicPath: string; }); /** * Returns the public link under which the given file path would be published * according to the rules of this publication */ publish(localPath: files.FullPath): files.FullLink; /** indicates whether this publication applies to the given file path */ publishes(localPath: files.FullPath): boolean; /** * provides the localPath for the given link * mapped according to the rules of this publication. */ resolve(link: files.FullLink, defaultFile: string): files.FullPath; /** indicates whether this publication maps the given link */ resolves(link: files.FullLink): boolean; } //# sourceMappingURL=publication.d.ts.map