UNPKG

@mdfriday/foundry

Version:

The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.

23 lines (22 loc) 868 B
import { SocialConfig, SocialPlatformTemplate, SocialUserConfig } from '../type'; export interface ProcessedSocialLink { id: string; title: string; url: string; } export declare class Social { private socialConfig; constructor(socialConfig: SocialConfig); getUserConfig(): SocialUserConfig; getPlatformTemplates(): SocialPlatformTemplate[]; getPlatformTemplate(platformId: string): SocialPlatformTemplate | undefined; isPlatformConfigured(platformId: string): boolean; getConfiguredPlatforms(): string[]; getProcessedSocialLinks(): ProcessedSocialLink[]; getSocialLink(platformId: string): ProcessedSocialLink | undefined; hasSocialLinks(): boolean; getSocialLinkCount(): number; getAvailablePlatforms(): string[]; getSocialConfig(): SocialConfig; } export declare function newSocial(data: any): Social;