/** * Slug generation utilities for spec-kit * * Provides functions to generate URL-friendly slugs from feature descriptions. */ /** * Stop words to remove from slugs */ declare const STOP_WORDS: Set; /** * Options for slug generation */ export interface SlugOptions { /** Maximum number of words in the slug (default: 4) */ maxWords?: number; /** Maximum length of the slug (default: 30) */ maxLength?: number; /** Separator character (default: '-') */ separator?: string; /** Whether to remove stop words (default: true) */ removeStopWords?: boolean; } /** * Generate a URL-friendly slug from a description. * * @param description - The text to convert to a slug * @param options - Optional configuration for slug generation * @returns A lowercase, hyphenated slug * * @example * ```typescript * generateSlug('Implement the User Authentication System'); * // Returns: 'implement-user-authentication-system' * * generateSlug('Add a new feature for handling errors'); * // Returns: 'add-new-feature-handling' (stop words removed, max 4 words) * * generateSlug('Short'); * // Returns: 'short' * * generateSlug(''); * // Returns: 'feature' * ``` */ export declare function generateSlug(description: string, options?: SlugOptions): string; /** * Export STOP_WORDS for testing purposes */ export { STOP_WORDS }; //# sourceMappingURL=slug.d.ts.map