import { BlogPost, BlogPostStatus, BlogPostCategory } from '../models/BlogPost';
export declare class BlogService {
    /**
     * Get published posts with optional filters (public, paginated)
     */
    static getPosts(category?: BlogPostCategory, page?: number, limit?: number, search?: string): Promise<{
        posts: {
            id: string;
            title: string;
            excerpt: string | null;
            slug: string;
            category: BlogPostCategory;
            cover_image_url: string | null;
            view_count: number;
            published_at: Date | null;
            author: {
                id: string;
                username: string;
                profile_image_url: string | null;
            } | null;
        }[];
        total: number;
        page: number;
        pages: number;
    }>;
    /**
     * Get single post by ID (public) — increments view count
     */
    static getPost(id: string): Promise<{
        author: {
            id: string;
            username: string;
            profile_image_url: string | null;
        } | null;
        id: string;
        author_id: string;
        title: string;
        content: string;
        excerpt: string | null;
        cover_image_url: string | null;
        category: BlogPostCategory;
        status: BlogPostStatus;
        slug: string;
        view_count: number;
        published_at: Date | null;
        created_at: Date;
        updated_at: Date;
    }>;
    /**
     * Get single post by slug (public) — increments view count
     */
    static getPostBySlug(slug: string): Promise<{
        author: {
            id: string;
            username: string;
            profile_image_url: string | null;
        } | null;
        id: string;
        author_id: string;
        title: string;
        content: string;
        excerpt: string | null;
        cover_image_url: string | null;
        category: BlogPostCategory;
        status: BlogPostStatus;
        slug: string;
        view_count: number;
        published_at: Date | null;
        created_at: Date;
        updated_at: Date;
    }>;
    /**
     * Get distinct categories from published posts
     */
    static getCategories(): Promise<BlogPostCategory[]>;
    /**
     * Get all posts (admin, paginated)
     */
    static getAllPosts(page?: number, limit?: number): Promise<{
        posts: BlogPost[];
        total: number;
        page: number;
        pages: number;
    }>;
    /**
     * Create a new blog post (admin)
     */
    static createPost(authorId: string, data: {
        title: string;
        content: string;
        category?: BlogPostCategory;
        excerpt?: string;
        cover_image_url?: string;
        status?: BlogPostStatus;
        slug?: string;
    }): Promise<BlogPost>;
    /**
     * Update a blog post (admin)
     */
    static updatePost(id: string, data: Partial<{
        title: string;
        content: string;
        excerpt: string;
        cover_image_url: string;
        category: BlogPostCategory;
        status: BlogPostStatus;
        slug: string;
    }>): Promise<BlogPost>;
    /**
     * Delete (archive) a blog post (admin)
     */
    static deletePost(id: string): Promise<BlogPost>;
    /**
     * Generate URL-friendly slug from title
     */
    private static generateSlug;
}
//# sourceMappingURL=blog.service.d.ts.map