import type { CategorizableTable } from '@stacksjs/orm'; /** * Fetch a category by ID */ export declare function fetchById(id: number): Promise; /** * Fetch all categories */ export declare function fetchAll(): Promise; /** * Fetch categories by name */ export declare function fetchByName(name: string): Promise; /** * Fetch category by slug */ export declare function fetchBySlug(slug: string): Promise; /** * Fetch categories with posts */ export declare function fetchWithPosts(id: number): Promise; /** * Find a category by name or create it if it doesn't exist * * @param name The name of the category to find or create * @param categorizableType Type of the categorizable entity * @param description Optional description for the category * @returns The existing or newly created category */ export declare function firstOrCreate(name: string, categorizableType: string, description?: string): Promise;