import type { PlatformClientConfig } from "../platform-client.js"; import { type OwnedRuntimeEndpointView } from "../runtime-endpoint-client.js"; export interface ClosedEndpointInfo { exists: true; closed: boolean; view: OwnedRuntimeEndpointView; } export interface UnknownEndpoint { exists: false; } export type LookupResult = ClosedEndpointInfo | UnknownEndpoint; export interface ClosedEndpointLookup { lookup(endpoint_id: string, asNodeId: string): Promise; invalidate(endpoint_id: string): void; size(): number; } export interface ClosedEndpointLookupOptions { cfg: PlatformClientConfig; runtimeKey: string; cacheSize?: number; cacheTtlMs?: number; fetcher?: (cfg: PlatformClientConfig, runtimeKey: string, endpointId: string, asNodeId: string) => Promise; } export declare function createClosedEndpointLookup(opts: ClosedEndpointLookupOptions): ClosedEndpointLookup; //# sourceMappingURL=closed-endpoint-lookup.d.ts.map