import type { Uint8Array_ } from "./_types.ts"; export type { Uint8Array_ }; /** * Returns a new byte slice composed of `count` repetitions of the `source` * array. * * @param source Source array to repeat. * @param count Number of times to repeat the source array. * @returns A new byte slice composed of `count` repetitions of the `source` * array. * * @example Basic usage * ```ts * import { repeat } from "repeat.ts"; * import { assertEquals } from "../assert/mod.ts"; * * const source = new Uint8Array([0, 1, 2]); * * assertEquals(repeat(source, 3), new Uint8Array([0, 1, 2, 0, 1, 2, 0, 1, 2])); * ``` * * @example Zero count * ```ts * import { repeat } from "repeat.ts"; * import { assertEquals } from "../assert/mod.ts"; * * const source = new Uint8Array([0, 1, 2]); * * assertEquals(repeat(source, 0), new Uint8Array()); * ``` */ export declare function repeat(source: Uint8Array, count: number): Uint8Array_;