import { ILyraBridgeContext } from '../registry'; import { ConstructorType } from '../type-helper'; import { ILyraJSAPI, ILyraJSAPIMeta, ILyraJSAPIType, LyraJSAPIMethod } from './api-type'; import { ILyraJSAPIContext, ILyraProcedureContext } from './context'; import { ELyraServicePlatform } from './platform'; import { ILyraProcedure, ILyraProcedureMeta, ILyraProcedureType, LyraProcedureMethod } from './procedure-type'; export interface ILyraJSAPICallParam { name: string; options: O; context: ILyraBridgeContext; } export interface ILyraProcedureCallParam { name: string; options: O; context: ILyraBridgeContext; } export declare enum ELyraServiceStatus { Success = "success", Fail = "fail", Error = "error" } export interface ILyraServiceMetadata { api: ILyraJSAPIMeta[]; procedure: ILyraProcedureMeta[]; } export interface ILyraServiceErrorPayload { error: number | string; errorMessage: string; } export interface ILyraService

{ getAPIContextClass(): ConstructorType, [ILyraService

, ILyraBridgeContext]>; getProcedureContextClass(): ConstructorType, [ILyraService

, ILyraBridgeContext]>; getServiceContainer(): ILyraServiceContainer

; getMetadata(): Promise; call(param: ILyraJSAPICallParam): ReturnType>; procedureCall(param: ILyraProcedureCallParam): ReturnType>; } export interface ILyraServiceContainer

{ getMetadata(): ILyraServiceMetadata; addAPI(ServiceClass: new () => ILyraJSAPI): this; addProcedure(ServiceClass: new () => ILyraProcedure): this; getAPIImpl, M extends ILyraJSAPIType

[K]>(name: K): M; getProcedureImpl, M extends ILyraProcedureType

[K]>(name: K): M; } //# sourceMappingURL=core.d.ts.map