import * as configuration from "../configuration/index.js"; import * as files from "./index.js"; /** * Represents a link to another Markdown file, * all the way from the root directory * (i.e. a link starting with '/') */ export declare class FullLink { readonly value: string; constructor(publicPath: string); /** Returns the anchor part of this link */ anchor(): string; /** * Returns a new link that consists of this link * with the given relative link appended */ append(segment: files.RelativeLink): FullLink; /** Returns a link to the containing directory */ directory(): FullLink; hasAnchor(): boolean; /** Returns whether this link has the given extension */ hasExtension(extension: string): boolean; /** Returns whether this link points to a directory */ isLinkToDirectory(): boolean; /** Returns the file path that this link has on the local filesystem */ localize(publications: configuration.Publications, defaultFile: string): files.FullFilePath | files.FullPath; /** * Returns a link where the old enclosing directory is replaced * with the new enclosing directory */ rebase(oldPath: string, newPath: string): FullLink; urlDecoded(): FullLink; /** Returns a link that contains the given anchor */ withAnchor(anchor: string): FullLink; /** Returns another FullLink instance that uses the given file extension */ withExtension(newExtension: string): FullLink; /** Returns a link that is this link without the anchor */ withoutAnchor(): FullLink; } //# sourceMappingURL=full-link.d.ts.map