import { type ReadKeyFunction } from '@dereekb/util'; /** * Creates an ArkType schema that validates an array has no duplicate keys. * * @param readKey - Function that extracts the key from each array element. * @returns An ArkType schema that narrows `T[]` to ensure uniqueness. * * @dbxUtil * @dbxUtilCategory validator * @dbxUtilKind factory * @dbxUtilTags validator, arktype, array, unique, uniqueness, keyed * * @example * ```typescript * const uniqueItemsType = uniqueKeyedType((item: Item) => item.id); * ``` * * @__NO_SIDE_EFFECTS__ */ export declare function uniqueKeyedType(readKey: ReadKeyFunction): import("arktype/internal/variants/array.ts").ArrayType;