import { z } from 'zod';
export type ArrayItemScore<T> = (item: T, idx: number, items: T[]) => number;
export declare function findMax<T>(items: T[]): T;
export declare function findMax<T>(items: T[], byProperty: keyof T): T;
export declare function findMax<T>(items: T[], score: ArrayItemScore<T>): T;
export declare function htmlString(): z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
export declare function countNonUnique(arr: any[]): number;
export declare function isError(thing: unknown): thing is Error;
//# sourceMappingURL=utils.d.ts.map