import { Stream } from '../util/grpc'; import * as AccountType from './typedef/account'; import * as EventType from './typedef/event'; import * as ExecutionType from './typedef/execution'; import * as InstanceType from './typedef/instance'; import * as ServiceType from './typedef/service'; import * as ProcessType from './typedef/process'; import * as OwnershipType from './typedef/ownership'; export declare type hash = Uint8Array; export declare const ExecutionStatus: { UNKNOWN: number; CREATED: number; IN_PROGRESS: number; COMPLETED: number; FAILED: number; }; export declare type Credential = { username: string; passphrase: string; }; export declare type Account = AccountType.mesg.types.IAccount; export declare type Event = EventType.mesg.types.IEvent; export declare type Execution = ExecutionType.mesg.types.IExecution; export declare type Instance = InstanceType.mesg.types.IInstance; export declare type Service = ServiceType.mesg.types.IService; export declare type Process = ProcessType.mesg.types.IProcess; export declare type Ownership = OwnershipType.mesg.types.IOwnership; export declare type AccountGetInputs = AccountType.mesg.api.IGetAccountRequest; export declare type AccountGetOutputs = Promise; export declare type AccountListInputs = AccountType.mesg.api.IListAccountRequest; export declare type AccountListOutputs = Promise; export declare type AccountCreateInputs = AccountType.mesg.api.ICreateAccountRequest; export declare type AccountCreateOutputs = Promise; export declare type AccountDeleteInputs = AccountType.mesg.api.IDeleteAccountRequest; export declare type AccountDeleteOutputs = Promise; export declare type EventCreateInputs = EventType.mesg.api.ICreateEventRequest; export declare type EventCreateOutputs = Promise; export declare type EventStreamInputs = EventType.mesg.api.StreamEventRequest; export declare type EventStreamOutputs = Stream; export declare type ExecutionGetInputs = ExecutionType.mesg.api.IGetExecutionRequest; export declare type ExecutionGetOutputs = Promise; export declare type ExecutionStreamInputs = ExecutionType.mesg.api.IStreamExecutionRequest; export declare type ExecutionStreamOutputs = Stream; export declare type ExecutionCreateInputs = ExecutionType.mesg.api.ICreateExecutionRequest; export declare type ExecutionCreateOutputs = Promise; export declare type ExecutionUpdateInputs = ExecutionType.mesg.api.IUpdateExecutionRequest; export declare type ExecutionUpdateOutputs = Promise; export declare type InstanceGetInputs = InstanceType.mesg.api.IGetInstanceRequest; export declare type InstanceGetOutputs = Promise; export declare type InstanceListInputs = InstanceType.mesg.api.IListInstanceRequest; export declare type InstanceListOutputs = Promise; export declare type InstanceCreateInputs = InstanceType.mesg.api.ICreateInstanceRequest; export declare type InstanceCreateOutputs = Promise; export declare type InstanceDeleteInputs = InstanceType.mesg.api.IDeleteInstanceRequest; export declare type InstanceDeleteOutputs = Promise; export declare type ServiceGetInputs = ServiceType.mesg.api.IGetServiceRequest; export declare type ServiceGetOutputs = Promise; export declare type ServiceHashInputs = ServiceType.mesg.api.ICreateServiceRequest; export declare type ServiceHashOutputs = Promise; export declare type ServiceExistsInputs = ServiceType.mesg.api.IExistsServiceRequest; export declare type ServiceExistsOutputs = Promise; export declare type ServiceListInputs = ServiceType.mesg.api.IListServiceRequest; export declare type ServiceListOutputs = Promise; export declare type ServiceCreateInputs = ServiceType.mesg.api.ICreateServiceRequest; export declare type ServiceCreateOutputs = Promise; export declare type ProcessGetInputs = ProcessType.mesg.api.IGetProcessRequest; export declare type ProcessGetOutputs = Promise; export declare type ProcessListInputs = ProcessType.mesg.api.IListProcessRequest; export declare type ProcessListOutputs = Promise; export declare type ProcessCreateInputs = ProcessType.mesg.api.ICreateProcessRequest; export declare type ProcessCreateOutputs = Promise; export declare type ProcessDeleteInputs = ProcessType.mesg.api.IDeleteProcessRequest; export declare type ProcessDeleteOutputs = Promise; export declare type OwnershipListInputs = OwnershipType.mesg.api.IListOwnershipRequest; export declare type OwnershipListOutputs = Promise; export declare type API = { account: { get: (request: AccountGetInputs, credential?: Credential) => AccountGetOutputs; list: (request: AccountListInputs, credential?: Credential) => AccountListOutputs; create: (request: AccountCreateInputs, credential?: Credential) => AccountCreateOutputs; delete: (request: AccountDeleteInputs, credential?: Credential) => AccountDeleteOutputs; }; event: { create: (request: EventCreateInputs, credential?: Credential) => EventCreateOutputs; stream: (request: EventStreamInputs, credential?: Credential) => EventStreamOutputs; }; execution: { get: (request: ExecutionGetInputs, credential?: Credential) => ExecutionGetOutputs; stream: (request: ExecutionStreamInputs, credential?: Credential) => ExecutionStreamOutputs; create: (request: ExecutionCreateInputs, credential?: Credential) => ExecutionCreateOutputs; update: (request: ExecutionUpdateInputs, credential?: Credential) => ExecutionUpdateOutputs; }; instance: { get: (request: InstanceGetInputs, credential?: Credential) => InstanceGetOutputs; list: (request: InstanceListInputs, credential?: Credential) => InstanceListOutputs; create: (request: InstanceCreateInputs, credential?: Credential) => InstanceCreateOutputs; delete: (request: InstanceDeleteInputs, credential?: Credential) => InstanceDeleteOutputs; }; service: { get: (request: ServiceGetInputs, credential?: Credential) => ServiceGetOutputs; hash: (request: ServiceHashInputs, credential?: Credential) => ServiceHashOutputs; exists: (request: ServiceExistsInputs, credential?: Credential) => ServiceExistsOutputs; list: (request: ServiceListInputs, credential?: Credential) => ServiceListOutputs; create: (request: ServiceCreateInputs, credential?: Credential) => ServiceCreateOutputs; }; process: { get: (request: ProcessGetInputs, credential?: Credential) => ProcessGetOutputs; list: (request: ProcessListInputs, credential?: Credential) => ProcessListOutputs; create: (request: ProcessCreateInputs, credential?: Credential) => ProcessCreateOutputs; delete: (request: ProcessDeleteInputs, credential?: Credential) => ProcessDeleteOutputs; }; ownership: { list: (request: OwnershipListInputs, credential?: Credential) => OwnershipListOutputs; }; };