@promptbook/langtail
Version:
It's time for a paradigm shift. The future of software in plain English, French or Latin
10 lines (9 loc) • 388 B
TypeScript
import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations';
/**
* Counts number of pages in the text
*
* Note: This does not check only for the count of newlines, but also for the length of the standard line and length of the standard page.
*
* @public exported from `@promptbook/utils`
*/
export declare function countPages(text: string): ExpectationAmount;