import type { ServerOptions } from './Server.ts'; /** Display error in console and exit process. */ export declare function exitWithError(message: string): never; /** Determine which places to listen at. */ export declare function getDomainsAndPort(options: ServerOptions): Promise<{ domains: string[]; port: number | boolean; }>; /** Calculate the base path used by the Kitten server to find files in the served app. */ export declare function setBasePath(workingDirectory: string, pathToServe: string): string; /** Returns unique project identifier based on the path of the project that can be used as the name of a directory. */ export declare function getProjectIdentifierForDomain(domain: string, port: number): string; export declare const HTTP_METHODS: string[]; export declare const BACKEND_EXTENSIONS: string[]; export declare const FRONTEND_EXTENSIONS: string[]; export declare const DEPENDENCY_EXTENSIONS: string[]; export declare const DYNAMIC_ROUTE_EXTENSIONS: string[]; export declare const STATIC_ROUTE_EXTENSIONS: string[]; export declare const ALL_ROUTE_EXTENSIONS: string[]; export declare const extensionCategories: Record; export declare const supportedExtensionsRegExp: string; /** Since Polka does not handle unicode in paths correctly (see https://github.com/lukeed/polka/issues/187), we have to split the file path and URI encode each component ourselves. */ export declare const encodeFilePath: (filePath: string) => string; /** Inverse of encodeFilePath. Used when we want to avoid double escaping of file paths. */ export declare const decodeFilePath: (filePath: string) => string; /** Returns the complete extension (e.g., page.js not just .js) of the passed file path. Works with any number of extensions, returning the last two without a dot at the start. */ export declare function extensionOfFilePath(filePath: string): string; /** Given a file path, derives the unique class name for its route. */ export declare function classNameFromFilePath(filePath: string, basePath: string): string; /** Derives the route pattern for the passed file path based on the base path. */ export declare function routePatternFromFilePath(filePath: string, basePath: string): string; /** Converts a route in the form of, e.g., '/some_thing/with/underscores-and-hyphens' to SomeThingWithUnderscoresAndHyphensPage. */ export declare function classNameFromRoutePattern(pattern: string): string; export declare const kittenAppPath: string; /** Run passed command (either 'ci' or 'install') on the given module path. */ export declare function npm(command: 'ci' | 'install', modulePath: string): boolean; /** Runs npm ci on the passed module path. */ export declare function runNpmCiOnModulePath(modulePath: string): void; /** db namespace for JSDB database-related utility functions. */ export declare class db { /** Given a JSDB change string, returns the dot-separated keypath of the changed property. */ static keypathForChange(change: string): string; }