import type { EstimatorFactory } from "./contract.js"; /** * Counts the tokens of one piece of text. The whole of what this module knows about a * tokenizer library: replacing the library is replacing this function. */ export type EncodeCount = (text: string) => number; /** * Builds a factory over a given encoder. The parameter is the seam the tests use to stand a * failing encoder up; every caller outside this module wants `estimatorFactory`. */ export declare const createEstimatorFactory: (count?: EncodeCount) => EstimatorFactory; export declare const estimatorFactory: EstimatorFactory;