export declare function str_word_count(str: string, format?: 0 | 1 | 2, charlist?: string): number | string[] | { [key: number]: string; };