/** * Lightweight PDF-spec date parser — no @elizaos/core deps so regression * tests can import it without pulling provider-integrations → @noble/hashes. */ /** * Parses the PDF-spec `D:` date string into a {@link Date}. When the string * carries a UT relation (`Z`, `+`, or `-`) the declared offset is applied so the * returned instant is absolute UTC. When the UT relation is omitted the zone is * unknown and, per PDF Reference 3.8.3 / ISO 32000-1 7.9.4, the remaining fields * are local time; that case is interpreted as host-local wall-clock via the * local `Date` constructor rather than fabricating a `Z` UTC claim. Returns * undefined for any string that is not a spec date so an unparseable value is * dropped rather than surfaced as an Invalid Date. * * Per-field clamps still substitute defaults for completely out-of-range * components (month 13 → January, day 40 → 1), matching the existing metadata * tests. Calendar-impossible combinations that survive those clamps (February * 30, April 31, February 29 outside a leap year) are dropped instead of letting * `Date` overflow into the next month and invent a wrong CreationDate/ModDate. * * Exported so regression tests can drive years 0-99 through the real parser * (`Date.UTC(10, …)` is 1910; `setUTCFullYear(10, …)` is year 10). */ export declare function parsePdfSpecDate(value: string): Date | undefined; //# sourceMappingURL=pdf-date.d.ts.map