export declare function collapseWhitespace(text: string, newlines?: boolean): string | null;