import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
import type { CallContext, CallOptions } from "nice-grpc-common";
import type { FileDescriptorProto as FileDescriptorProto1 } from "ts-proto-descriptors";
import { Any } from "../../google/protobuf/any";
import { Subject } from "./auth";
import { Sort } from "./resource_base";
import { OperationStatus } from "./status";
export declare const protobufPackage = "io.restorecommerce.graph";
export interface TraversalRequest {
    vertices?: Vertices | undefined;
    collection?: Collection | undefined;
    opts?: Options | undefined;
    path?: boolean | undefined;
    subject?: Subject | undefined;
    filters?: Filters[] | undefined;
}
export interface Vertices {
    collectionName?: string | undefined;
    startVertexIds?: string[] | undefined;
}
export interface Collection {
    collectionName?: string | undefined;
    limit?: number | undefined;
    offset?: number | undefined;
    sorts?: Sort[] | undefined;
}
export interface Options {
    /** to include vertices */
    includeVertexs?: string[] | undefined;
    /** to exclude vertices */
    excludeVertexs?: string[] | undefined;
    /** to include vertices */
    includeEdges?: string[] | undefined;
    /** to exclude vertices */
    excludeEdges?: string[] | undefined;
    /** either inbound or outbound, defaults to outbound direction */
    direction?: Options_Direction | undefined;
}
export declare enum Options_Direction {
    OUTBOUND = "OUTBOUND",
    INBOUND = "INBOUND",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function options_DirectionFromJSON(object: any): Options_Direction;
export declare function options_DirectionToJSON(object: Options_Direction): string;
export declare function options_DirectionToNumber(object: Options_Direction): number;
export interface Filters {
    /** entity on which the filters are applied */
    entity?: string | undefined;
    /** if edge is specified depending on the direction filter are applied only for those entities */
    edge?: string | undefined;
    filters?: Filter[] | undefined;
    operator?: Filters_Operator | undefined;
}
export declare enum Filters_Operator {
    and = "and",
    or = "or",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function filters_OperatorFromJSON(object: any): Filters_Operator;
export declare function filters_OperatorToJSON(object: Filters_Operator): string;
export declare function filters_OperatorToNumber(object: Filters_Operator): number;
export interface Filter {
    field?: string | undefined;
    operation?: Filter_Operation | undefined;
    value?: string | undefined;
    type?: Filter_ValueType | undefined;
    filters?: Filters[] | undefined;
}
export declare enum Filter_Operation {
    eq = "eq",
    lt = "lt",
    lte = "lte",
    gt = "gt",
    gte = "gte",
    isEmpty = "isEmpty",
    iLike = "iLike",
    in = "in",
    neq = "neq",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function filter_OperationFromJSON(object: any): Filter_Operation;
export declare function filter_OperationToJSON(object: Filter_Operation): string;
export declare function filter_OperationToNumber(object: Filter_Operation): number;
export declare enum Filter_ValueType {
    /** STRING - default value type if not specified */
    STRING = "STRING",
    NUMBER = "NUMBER",
    BOOLEAN = "BOOLEAN",
    DATE = "DATE",
    ARRAY = "ARRAY",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function filter_ValueTypeFromJSON(object: any): Filter_ValueType;
export declare function filter_ValueTypeToJSON(object: Filter_ValueType): string;
export declare function filter_ValueTypeToNumber(object: Filter_ValueType): number;
export interface TraversalResponse {
    /** vertices */
    data?: Any | undefined;
    /** traversed vertices paths */
    paths?: Any | undefined;
    operationStatus?: OperationStatus | undefined;
}
export declare const TraversalRequest: MessageFns<TraversalRequest>;
export declare const Vertices: MessageFns<Vertices>;
export declare const Collection: MessageFns<Collection>;
export declare const Options: MessageFns<Options>;
export declare const Filters: MessageFns<Filters>;
export declare const Filter: MessageFns<Filter>;
export declare const TraversalResponse: MessageFns<TraversalResponse>;
/** Service provides the CRUD operations */
export type GraphServiceDefinition = typeof GraphServiceDefinition;
export declare const GraphServiceDefinition: {
    readonly name: "GraphService";
    readonly fullName: "io.restorecommerce.graph.GraphService";
    readonly methods: {
        readonly traversal: {
            readonly name: "Traversal";
            readonly requestType: typeof TraversalRequest;
            readonly requestStream: false;
            readonly responseType: typeof TraversalResponse;
            readonly responseStream: true;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
    };
};
export interface GraphServiceImplementation<CallContextExt = {}> {
    traversal(request: TraversalRequest, context: CallContext & CallContextExt): ServerStreamingMethodResult<DeepPartial<TraversalResponse>>;
}
export interface GraphServiceClient<CallOptionsExt = {}> {
    traversal(request: DeepPartial<TraversalRequest>, options?: CallOptions & CallOptionsExt): AsyncIterable<TraversalResponse>;
}
type ProtoMetaMessageOptions = {
    options?: {
        [key: string]: any;
    };
    fields?: {
        [key: string]: {
            [key: string]: any;
        };
    };
    oneof?: {
        [key: string]: {
            [key: string]: any;
        };
    };
    nested?: {
        [key: string]: ProtoMetaMessageOptions;
    };
};
export interface ProtoMetadata {
    fileDescriptor: FileDescriptorProto1;
    references: {
        [key: string]: any;
    };
    dependencies?: ProtoMetadata[];
    options?: {
        options?: {
            [key: string]: any;
        };
        services?: {
            [key: string]: {
                options?: {
                    [key: string]: any;
                };
                methods?: {
                    [key: string]: {
                        [key: string]: any;
                    };
                };
            };
        };
        messages?: {
            [key: string]: ProtoMetaMessageOptions;
        };
        enums?: {
            [key: string]: {
                options?: {
                    [key: string]: any;
                };
                values?: {
                    [key: string]: {
                        [key: string]: any;
                    };
                };
            };
        };
    };
}
export declare const protoMetadata: ProtoMetadata;
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
export type ServerStreamingMethodResult<Response> = {
    [Symbol.asyncIterator](): AsyncIterator<Response, void>;
};
export interface MessageFns<T> {
    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>): T;
    fromPartial(object: DeepPartial<T>): T;
}
export {};
//# sourceMappingURL=graph.d.ts.map