UNPKG

@promptbook/remote-server

Version:

Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action

16 lines (15 loc) 1.01 kB
import type { LinguisticHashLanguage } from './LinguisticHashLanguage'; export { DEFAULT_LINGUISTIC_HASH_LANGUAGE, LINGUISTIC_HASH_LANGUAGES, normalizeLinguisticHashLanguage, } from './LinguisticHashLanguage'; export type { LinguisticHashLanguage } from './LinguisticHashLanguage'; export { DEFAULT_LINGUISTIC_HASH_WORD_COUNT, MAX_LINGUISTIC_HASH_WORD_COUNT, MIN_LINGUISTIC_HASH_WORD_COUNT, normalizeLinguisticHashWordCount, } from './linguisticHashWordCount'; /** * Creates a human-readable hash as a short, story-like phrase. * * {@link MIN_LINGUISTIC_HASH_WORD_COUNT}..{@link MAX_LINGUISTIC_HASH_WORD_COUNT}) * * @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to * @param language optional language code (defaults to {@link DEFAULT_LINGUISTIC_HASH_LANGUAGE}) * * @public exported from `@promptbook/utils` */ export declare function linguisticHash(input: string, wordCount?: number, language?: LinguisticHashLanguage): Promise<string>;