/** * Fixtures for testing against real passes. * * Published rather than kept to this package's own tests, because every product * that issues a pass has to test that it issued the right one — and the * alternative is each of them inventing a certificate, a chain and a set of * correctly sized images, differently, and getting one of the three subtly * wrong. * * Nothing here touches a network, a keychain or a file. A suite using it needs * no Apple account, no openssl binary, and no fixture directory. */ import { type CertificateAndKey } from '../apple/development-certificate'; import type { SigningMaterial } from '../apple/sign'; import type { PassAssets, PassContent } from '../content'; export { solidPng, fingerprint } from '../images/placeholder'; /** Images at the sizes the layout expects, with correct densities. */ export declare function sampleAssets(): PassAssets; export interface TestSigner { material: SigningMaterial; /** The root the signing certificate chains to. Passed to `verifyPkPass`. */ trustedRoots: string[]; /** The root and the leaf, for a test that needs to look at them. */ root: CertificateAndKey; leaf: CertificateAndKey; } /** * A two-certificate chain: a root, and a Pass Type ID certificate under it. * * A chain rather than a single self-signed certificate on purpose. A self-signed * one verifies against itself, which makes every chain assertion in a suite pass * for the wrong reason — including the one that is supposed to prove a stranger's * certificate is rejected. */ export declare function testSigner(options?: { passTypeIdentifier?: string; teamIdentifier?: string; validFrom?: Date; validTo?: Date; }): Promise; /** * A plausible stamp card. * * Plausible rather than minimal: it carries a barcode, a location, an update web * service and per-locale text, because a fixture that omits them is a fixture * whose tests never touch the parts most likely to be wrong. */ export declare function sampleContent(overrides?: Partial): PassContent; //# sourceMappingURL=index.d.ts.map