export type PeriodicKind = "daily" | "weekly" | "monthly" | "quarterly" | "yearly"; export interface PeriodicSpec { /** Moment.js format string, e.g. "YYYY-MM-DD" or "YYYY-[W]ww". */ format: string; /** Vault-relative folder, e.g. "Daily Notes/" or "" for vault root. */ folder: string; } export interface PeriodicConfig { daily?: PeriodicSpec; weekly?: PeriodicSpec; monthly?: PeriodicSpec; quarterly?: PeriodicSpec; yearly?: PeriodicSpec; } /** Read .obsidian/daily-notes.json + .obsidian/plugins/periodic-notes/data.json * if they exist. Returns a unified PeriodicConfig where each key may be * populated from one config or the other. Both configs are best-effort — * missing files / malformed JSON are silently ignored (we fall back to * defaults). * * v2.0.0-beta.2 P1 sec DiD: optional `isExcluded` predicate lets the caller * enforce `--read-paths` / `--exclude-glob` over the `.obsidian/` config * reads. Without this, the `.obsidian/` directory was implicitly exempted * from the user's privacy filter — a strict allowlist user got their * config read regardless. Now the resolver falls back to hard-coded * defaults when the user's filter would have blocked the read. */ export declare function loadPeriodicConfig(vaultRoot: string, isExcluded?: (relPath: string) => boolean): Promise; /** Resolve a periodic alias ("today" / "daily" / "weekly" / "monthly" / * "quarterly" / "yearly") to the vault-relative basename (without `.md`) * that the user's config implies. The caller still has to look the file up * in the vault — this just produces the expected path stem. */ export declare function resolvePeriodicNoteName(alias: string, config: PeriodicConfig, now?: Date): { kind: PeriodicKind; relPath: string; } | null; /** Tiny Moment.js → string formatter. Supports the tokens periodic-note * configs actually use. Anything else falls through verbatim — in practice * most users stick to YYYY/MM/DD/ww/MMMM/Q. */ export declare function formatMoment(format: string, date: Date): string; //# sourceMappingURL=periodic.d.ts.map