import type { IEndpoint } from "$lib/server/classes/endpoints/endpoints-interfaces"; import { EndpointType } from "$lib/server/enums/endpoints"; import type { FileStats } from "$lib/server/utils/filesystem-utils"; export interface IEndpointFS { /** * Specifies which Enpoint this is */ type: EndpointType /** File name */ name: string /** * File stats, * useful to understand * whether the file has been actually * parsed by nginx during last reload */ stats: FileStats | null /** File path */ path: string /** Hash of the file */ hash: string /** converts the IEndpoint to */ toConf(): string ports(): number[] headerHash(): string toIEndpoint(): IEndpoint } export type FSHeader = { name: string, stats: FileStats path: string, hash: string }