/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import type { PluginOptions, VcsConfig } from '@docusaurus/types'; export type LastUpdateData = { /** * A timestamp in **milliseconds**, usually read from `git log` * `undefined`: not read * `null`: no value to read (usual for untracked files) */ lastUpdatedAt: number | undefined | null; /** * The author's name, usually coming from `git log` * `undefined`: not read * `null`: no value to read (usual for untracked files) */ lastUpdatedBy: string | undefined | null; }; type LastUpdateOptions = Pick; export type FrontMatterLastUpdate = { author?: string; /** * Date can be any * [parsable date string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse). */ date?: Date | string; }; export declare function readLastUpdateData(filePath: string, options: LastUpdateOptions, lastUpdateFrontMatter: FrontMatterLastUpdate | undefined, vcsParam: Pick): Promise; export {}; //# sourceMappingURL=lastUpdateUtils.d.ts.map