import type { Block } from '../core/index.ts'; import type { SequenceCompatibilityError } from './sequence-compatibility-error.ts'; import type { BlockTypeIsCompatibleWithSequence } from './block-type-is-compatible-with-sequence.ts'; import type { InputType } from './input-type.ts'; import type { OutputType } from './output-type.ts'; /** * @public * * Match the input and outputs of a sequence containing a single, normal block */ export type SingleGeneralBlock[], TBefore extends readonly Block[], TInput, TOutput> = TSequence extends readonly [infer Only extends Block] ? BlockTypeIsCompatibleWithSequence, TInput> extends true ? BlockTypeIsCompatibleWithSequence, TOutput> extends true ? readonly [...TBefore, Only] : SequenceCompatibilityError : SequenceCompatibilityError : never; //# sourceMappingURL=single-general-block.d.ts.map