import type { Pattern } from './Pattern'; export type PatternRepeat = 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'; type ExportedKeys = | 'crossOrigin' | 'offsetX' | 'offsetY' | 'patternTransform' | 'repeat' | 'source'; export type PatternOptions = Partial> & { source: CanvasImageSource; }; export type SerializedPatternOptions = Omit & { type: 'pattern'; source: string; };