import type { TypeOfCollection } from '../types'; import type { Collection } from '@sdkset/types'; /** * 返回一个数组,数组由给定集合随机萃取的`n`个元素组成。 * * @example * sample([1, 2, 3, 4, 5, 6]) * => 4 * * sample([1, 2, 3, 4, 5, 6], 3) * => [1, 6, 2] * * @param list 给定集合 * @param n 萃取数量 */ export declare function sample(list: V, n?: number): TypeOfCollection[];