import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import type { CallContext, CallOptions } from "nice-grpc-common"; import { Empty } from "./google/protobuf/empty"; export declare const protobufPackage = "Cratis.Chronicle.Contracts.Host"; export interface ServerVersionInfo { Version: string; CommitSha: string; ProtocolVersion: string; } export declare const ServerVersionInfo: MessageFns; export type ServerDefinition = typeof ServerDefinition; export declare const ServerDefinition: { readonly name: "Server"; readonly fullName: "Cratis.Chronicle.Contracts.Host.Server"; readonly methods: { readonly getVersionInfo: { readonly name: "GetVersionInfo"; readonly requestType: typeof Empty; readonly requestStream: false; readonly responseType: typeof ServerVersionInfo; readonly responseStream: false; readonly options: {}; }; readonly resetKernelState: { readonly name: "ResetKernelState"; readonly requestType: typeof Empty; readonly requestStream: false; readonly responseType: typeof Empty; readonly responseStream: false; readonly options: {}; }; }; }; export interface ServerServiceImplementation { getVersionInfo(request: Empty, context: CallContext & CallContextExt): Promise>; resetKernelState(request: Empty, context: CallContext & CallContextExt): Promise>; } export interface ServerClient { getVersionInfo(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; resetKernelState(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined; export type DeepPartial = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export interface MessageFns { encode(message: T, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): T; fromJSON(object: any): T; toJSON(message: T): unknown; create(base?: DeepPartial): T; fromPartial(object: DeepPartial): T; } export {}; //# sourceMappingURL=host.d.ts.map