/** * -------------------------------------------------------------------- * docmd : the zero-config documentation engine. * * @package @docmd/core (and ecosystem) * @website https://docmd.io * @repository https://github.com/docmd-io/docmd * @license MIT * @copyright Copyright (c) 2025-present docmd.io * * [docmd-source] - Please do not remove this header. * -------------------------------------------------------------------- */ import type { PluginDescriptor } from '@docmd/api'; declare function getGitFileInfo(filePath: string, maxCommits?: number): Promise; export declare const plugin: PluginDescriptor; export interface GitCommit { hash: string; shortHash: string; author: string; email: string; date: string; timestamp: number; message: string; avatarUrl: string; } export interface GitFileInfo { lastUpdated: string; lastUpdatedTimestamp: number; commits: GitCommit[]; } /** * Format a timestamp for display. * Uses relative time for recent updates, absolute for older ones. */ declare function formatLastUpdated(timestamp: number, locale?: string): string; /** * Plugin translations hook. */ export declare function translations(localeId: string): Record; export declare function onConfigResolved(config: any): void; /** * onBeforeParse: stub for future use (per-page processing). */ export declare function onBeforeParse(_ctx: any): void; export declare function onBeforeBuild(ctx: any): Promise; export declare function onPostBuild(): void; /** * Generate scripts to inject git i18n strings for the client widget. */ export declare function generateScripts(config: any, options?: any): { headScriptsHtml: string; bodyScriptsHtml: string; }; /** * Provide client-side assets. * Always returns assets - client-side JS handles graceful degradation. */ export declare function getAssets(_options?: any): any[]; export { getGitFileInfo, formatLastUpdated }; //# sourceMappingURL=index.d.ts.map