import type Database from 'better-sqlite3';
import type { BrokenReference, ChangedBy, Dto, DtoCreateInput, DtoDeleteResult, DtoListQuery, DtoUpdateInput } from '../../shared/entities.js';
import type { TagsService } from './tags.js';
import type { VersionService } from './versions.js';
export declare class DtoService {
    private db;
    private tags;
    private versions;
    constructor(db: Database.Database, tags: TagsService, versions: VersionService);
    create(input: DtoCreateInput, actor: ChangedBy): Dto;
    list(query?: DtoListQuery): Dto[];
    getBySlug(slug: string): Dto | null;
    getIdBySlug(slug: string): number | null;
    update(slug: string, input: DtoUpdateInput, actor: ChangedBy): {
        dto: Dto;
        previousSlug: string;
    };
    remove(slug: string, actor: ChangedBy, brokenReferences?: BrokenReference[]): DtoDeleteResult;
    private getByIdInternal;
    private hydrate;
    private getLinkedEndpoints;
}
