type UseGroupByProps<T> = {
    data: T[];
    format?: string;
    key: keyof T;
};
type Result<T> = Record<string, T[]>;
export declare function useGroupBy<T>({ data, key, format }: UseGroupByProps<T>): Result<T>;
export {};
