import { EndpointDefinition } from '../web/ExpressEndpointSetup.ts'; import { ServiceDefinition } from '../ServiceDefinition.ts'; import { CallEndpointOptions } from './callEndpoint.ts'; export interface PrismAppConfig { name?: string; description?: string; services?: ServiceDefinition[]; } export declare function endpointKey(method: string, path: string): string; export declare class PrismApp { endpointMap: Map; services: ServiceDefinition[]; name: string; description: string; constructor(config?: PrismAppConfig); /** * Add a service to the app. Endpoints from the service will be registered * and available for routing. */ addService(service: ServiceDefinition): void; getAllServices(): ServiceDefinition[]; getEndpoint(method: string, path: string): EndpointDefinition | undefined; matchEndpoint(method: string, path: string): { endpoint: EndpointDefinition; params: Record; } | undefined; private matchPath; listAllEndpoints(): EndpointDefinition[]; callEndpoint(options: CallEndpointOptions): Promise; } //# sourceMappingURL=PrismApp.d.ts.map