/** The options for the chunkString method */ export type ChunkStringOptions = { /** The max size of each chunk */ size?: number; /** Chunk strings from the end to front (['ab', 'cde', 'fgh'] instead of ['abc', 'def', 'gh']) */ reverse?: boolean; }; /** * Split a String up into smaller strings of a give size (eg. 'ABCDEF' -> [AB,CD,EF]) * * @param str - String to split up * @param options - The configuration options * @returns Array of chunks * * @example * ```ts * chunkString('abcdefghijkl'); // --> ['ab', 'cd', 'ef', 'gh', 'ij', 'kl'] * chunkString('abcdefghij', { size: 4 }); // --> ['abcd', 'efgh', 'ij'] * chunkString('abcdefghij', { size: 4, reverse: true }); // --> ['ab', 'cdef', 'ghij'] * ``` */ export declare function chunkString(str: string, options?: ChunkStringOptions): string[]; export default chunkString;