import type { SkipItem } from './types.ts'; /** * A pair of Sets used for O(1) skip lookups. * - [0]: component-only skips (match all variants of the component) * - [1]: component+variant skips (match a specific variant, keyed as "component\0variant") */ export type SkipSet = readonly [componentOnly: Set, componentVariant: Set]; /** * Parses and validates a JSON string, returning an array of SkipItems. * Throws a TypeError if the JSON is invalid or not an array of SkipItems. */ export declare function validateSkip(json: string): Array; /** * Parses a JSON string into an array of SkipItems. Returns an empty array on * any parse error or if the value is not a valid array of SkipItems. */ export declare function parseSkip(json?: string): Array; /** * Converts an array of SkipItems into a SkipSet for efficient lookups. * Items with a `storyFile` key (unresolved) are silently ignored. */ export declare function toSkipSet(items: Array): SkipSet; /** * Returns true if the given component+variant should be skipped according to * the SkipSet. */ export declare function isInSkipSet([componentOnly, componentVariant]: SkipSet, component: string, variant: string): boolean; //# sourceMappingURL=parseSkip.d.ts.map