/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /** * This method splits "⚠️ Hello World" into "⚠️" + " Hello World". * It is quite strict and dumb, only useful to handle best-effort heuristics. * It only extracts a leading emoji if it is the first grapheme of the string. * It only extracts one emoji, even if multiples are present. * It doesn't trim the remaining string. * If you need something more clever, it should be built on top. * @param input */ export declare function extractLeadingEmoji(input: string): { emoji: string | null; rest: string; }; //# sourceMappingURL=emojiUtils.d.ts.map