// Ambient typings to make custom Jest matchers available to the TS language server in tests. // No external @types packages required. type PartialExceptTheseRequired = Partial & Pick, K>; declare global { // Minimal shape of a TextStream used by tests' helpers interface TextStream { text: string; font: string; fontSize: number; } type TextStreamMatcher = PartialExceptTheseRequired; namespace jest { interface Matchers { // Expect the PDF data array to contain a specific chunk sequence toContainChunk(chunk: Array): R; // Expect the PDF data array to contain a text stream matching the TextStream toContainText(textStream: TextStreamMatcher): R; } } } export {};