/** * Creates a custom string sorting function based on a specified order. * * @param order - An array of strings that defines the custom sorting order. * @returns A comparison function that can be used with Array.sort(). * * @example * const customSort = createCustomStringSort(['apple', 'banana', 'cherry']); * const fruits = ['cherry', 'apple', 'date', 'banana']; * fruits.sort(customSort); * // Result: ['apple', 'banana', 'cherry', 'date'] */ export declare const createCustomStringSort: (order: string[]) => (a: string, b: string) => number;