import { ResolvedConfig, ServerClient } from '../common-types'; import { ZetaPushContext, Loadable } from '@zetapush/core'; import { LocalServerRegistry } from '../utils/server-registry'; export declare const defaultZetaPushInternalUrlProvider: (url: string) => string; export declare class PlatformEventContext implements ZetaPushContext, Loadable { private config; private client; private queueApi; private serverRegistry; private zetapushInternalUrlProvider; private context?; constructor(config: ResolvedConfig, client: ServerClient, queueApi: any, serverRegistry: LocalServerRegistry, zetapushInternalUrlProvider?: (url: string) => string); load(): Promise; canLoad(): Promise; getAppName(): string; getPlatformUrl(): string; getFrontUrl(name?: string): string | null; getWorkerUrl(name?: string, zetapushInternalServer?: boolean): string | null; getLocalZetaPushHttpPort(): number | null; private getUrl; private getDefault; private getBestUrl; private checkLoaded; }