import { Studio } from '@bluepic/types';
import { z } from '@hono/zod-openapi';
export declare function groupTemplatesByName(templates: {
    [k: string]: z.infer<typeof Studio.publicTemplateDescriptor>;
}): {
    [k: string]: {
        [k: string]: {
            serial: any;
            preview: string | null;
            name: string;
            width: number;
            height: number;
            category: string | null;
            active: boolean;
            dpi?: number | undefined;
        };
    };
};
export declare function collectTemplatesCategories(templates: {
    [k: string]: z.infer<typeof Studio.publicTemplateDescriptor>;
}): string[];
export declare function groupTemplatesByCategory(templates: {
    [k: string]: z.infer<typeof Studio.publicTemplateDescriptor>;
}): {
    category: string;
    templatesByName: {
        [k: string]: {
            [k: string]: {
                serial: any;
                preview: string | null;
                name: string;
                width: number;
                height: number;
                category: string | null;
                active: boolean;
                dpi?: number | undefined;
            };
        };
    };
}[];
