export declare function castArray(x: undefined | T | T[]): T[]; export type ArrayItem = A extends (infer V)[] ? V : never;