UNPKG

@technobuddha/library

Version:
12 lines (11 loc) 401 B
import { type IndentOptions } from './indent.ts'; /** * Determine the indentation level of text * @param input - The indented text * @param options - see {@link IndentOptions} * @defaultValue indenter space * @returns The minimum amount of indentation on each line * @group String * @category Analysis */ export declare function getIndent(input: string, { indenter }?: IndentOptions): number;