import { Ddan } from "../../typings"; /** * 分步动作 * @param list 列表 * @param func 动作function * @param stepCount 每步数量 * @returns */ declare function stepAction(list: T[], func: Ddan.Task, stepCount?: number): void; /** * 跳过数据 * @param list 列表 * @param count 跳过数量 * @returns */ declare function skip(list: T[], count: number): T[]; /** * 提取数据 * @param list 列表 * @param count 提取数量 * @param skip 跳过数量 * @returns */ declare function take(list: T[], count: number, skip?: number): T[]; /** * 去重 * @param list * @returns */ declare function distinct(list: T[]): T[]; declare function randoms(list: T[], count?: number, repeat?: boolean): T[]; declare const _default: { stepAction: typeof stepAction; skip: typeof skip; take: typeof take; distinct: typeof distinct; randoms: typeof randoms; toKV: (list: Ddan.KV[], key: string, value: string) => Ddan.KV; groupBy: (list: T[], key: string) => Record; first: (list: T_1[]) => T_1 | undefined; last: (list: T_2[]) => T_2 | undefined; toList: (val: T_3 | T_3[]) => T_3[]; }; export default _default;