import type Database from 'better-sqlite3';
import type { ChangedBy, Endpoint, EndpointCreateInput, EndpointDeleteResult, EndpointDtoRelation, EndpointListQuery, EndpointUpdateInput } from '../../shared/entities.js';
import type { TagsService } from './tags.js';
import type { VersionService } from './versions.js';
export declare class EndpointService {
    private db;
    private tags;
    private versions;
    constructor(db: Database.Database, tags: TagsService, versions: VersionService);
    create(input: EndpointCreateInput, actor: ChangedBy): Endpoint;
    list(query?: EndpointListQuery): Endpoint[];
    getBySlug(slug: string): Endpoint | null;
    getIdBySlug(slug: string): number | null;
    update(slug: string, input: EndpointUpdateInput, actor: ChangedBy): Endpoint;
    remove(slug: string, actor: ChangedBy): EndpointDeleteResult;
    private getByIdInternal;
    private hydrate;
    private getLinkedDtos;
    linkDto(endpointSlug: string, dtoSlug: string, relation: EndpointDtoRelation, statusCode?: number | null): Endpoint;
    unlinkDto(endpointSlug: string, dtoSlug: string, relation: EndpointDtoRelation, statusCode?: number | null): Endpoint;
    private requireMethod;
}
