import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; import type { CallContext, CallOptions } from "nice-grpc-common"; import { Guid } from "./protobuf-net/bcl"; export declare const protobufPackage = "Cratis.Chronicle.Contracts.EventSequences"; export declare enum ValidationResultSeverity { Unknown = 0, Information = 1, Warning = 2, Error = 3, UNRECOGNIZED = -1 } export declare function validationResultSeverityFromJSON(object: any): ValidationResultSeverity; export declare function validationResultSeverityToJSON(object: ValidationResultSeverity): string; export interface IsStreamCompletedRequest { EventSequenceId: string; EventStore: string; Namespace: string; EventStreamType: string; EventStreamId: string; } export interface QueryResultBoolean { CorrelationId: Guid | undefined; IsAuthorized: boolean; ValidationResults: ValidationResult[]; ExceptionMessages: string[]; ExceptionStackTrace: string; Data: boolean; } export interface ValidationResult { Severity: ValidationResultSeverity; Message: string; Members: string[]; } export declare const IsStreamCompletedRequest: MessageFns; export declare const QueryResultBoolean: MessageFns; export declare const ValidationResult: MessageFns; export type EventSequenceQueriesDefinition = typeof EventSequenceQueriesDefinition; export declare const EventSequenceQueriesDefinition: { readonly name: "EventSequenceQueries"; readonly fullName: "Cratis.Chronicle.Contracts.EventSequences.EventSequenceQueries"; readonly methods: { readonly isStreamCompleted: { readonly name: "IsStreamCompleted"; readonly requestType: typeof IsStreamCompletedRequest; readonly requestStream: false; readonly responseType: typeof QueryResultBoolean; readonly responseStream: false; readonly options: {}; }; }; }; export interface EventSequenceQueriesServiceImplementation { isStreamCompleted(request: IsStreamCompletedRequest, context: CallContext & CallContextExt): Promise>; } export interface EventSequenceQueriesClient { isStreamCompleted(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=eventsequences.d.ts.map