@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
23 lines • 873 B
TypeScript
import { Config } from "../../config";
import { Components } from "../components";
import { Post } from "../post";
import { Vars } from "../vars";
import { PostUtil } from "./post.util";
export declare class LinkUtil {
private components;
private postUtil;
private vars;
private config;
constructor(components: Components, postUtil: PostUtil, vars: Vars, config: Config);
getPermalink(post: Post): Promise<string>;
getAttachmentLink(post?: Post): Promise<string>;
getPageLink(post?: Post, leavename?: boolean, sample?: boolean): Promise<string>;
private forcePlainPostPermalink;
getHomeUrl(args?: {
blogId?: number;
path?: string;
scheme?: "http" | "https" | "relative" | "rest";
}): Promise<string>;
setUrlScheme(url: string, scheme?: string | null): string;
}
//# sourceMappingURL=link.util.d.ts.map