import { PrivateConfigClass } from '../../../common/config/private/PrivateConfigClass'; import { ClientAlbumConfig, ClientFacesConfig, ClientMapConfig, ClientMetaFileConfig, ClientPhotoConfig, ClientRandomPhotoConfig, ClientSearchConfig, ClientSharingConfig, NavBarConfig, NavigationLinkConfig } from '../../../common/config/public/ClientConfig'; import { ServerAlbumCoverConfig, ServerDataBaseConfig, ServerJobConfig, ServerPhotoConfig, ServerVideoConfig } from '../../../common/config/private/PrivateConfig'; export declare class ConfigDiagnostics { private static adjustConfigWarn; static testAlbumsConfig(albumConfig: ClientAlbumConfig, original: PrivateConfigClass): void; static checkReadWritePermission(path: string): Promise; static testDatabase(databaseConfig: ServerDataBaseConfig): Promise; static testJobsConfig(jobsConfig: ServerJobConfig): void; static testMetaFileConfig(metaFileConfig: ClientMetaFileConfig, config: PrivateConfigClass): void; static testVideoConfig(videoConfig: ServerVideoConfig, config: PrivateConfigClass): Promise; static testSharp(): void; /** * sharp 0.35+ has an `exports` map without './package.json', so `require('sharp/package.json')` would throw. */ private static getSharpPackageJson; /** * The Docker images compile sharp against the distro's libvips (SHARP_FORCE_GLOBAL_LIBVIPS), * which skips sharp's own version check. A too-new sharp would then break at runtime. * @param required sharp's `config.libvips`, e.g. '>=8.16.1' * @param loaded the libvips sharp runs with (`sharp.versions.vips`) */ static testLibvipsVersion(required: string, loaded: string): void; static testTempFolder(folder: string): Promise; static testImageFolder(folder: string): Promise; static testPhotoConfig(photoConfig: ServerPhotoConfig): void; static testTasksConfig(task: ServerJobConfig, config: PrivateConfigClass): void; static testFacesConfig(faces: ClientFacesConfig, config: PrivateConfigClass): void; static testSearchConfig(search: ClientSearchConfig, config: PrivateConfigClass): void; static testSharingConfig(sharing: ClientSharingConfig, config: PrivateConfigClass): void; static testRandomPhotoConfig(sharing: ClientRandomPhotoConfig, config: PrivateConfigClass): void; static testMapConfig(map: ClientMapConfig): void; static testUsersConfig(config: PrivateConfigClass): void; static testNavigationLink(link: NavigationLinkConfig, what?: string): void; static testNavBarConfig(navBar: NavBarConfig): void; /** * Drops the links that the client could not navigate to. * Falls back to the default links if nothing is left. */ static removeInvalidNavigationLinks(navBar: NavBarConfig): void; static testAlbumCoverConfig(settings: ServerAlbumCoverConfig): void; /** * Removes unsupported image formats. * It is possible that some OS support one or the other image formats (like macOS does with HEIC), * but others do not. * Those formats are added to the config but dynamically removed. * @param config */ static removeUnsupportedPhotoExtensions(config: ClientPhotoConfig): Promise; static testConfig(config: PrivateConfigClass): Promise; static runDiagnostics(): Promise; }