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 { Reference } from "./reference";
import { OperationStatusObj } from "./status";
export declare const protobufPackage = "io.restorecommerce.notification_req";
/** mimics nodemailer properties for easy configuration */
export interface Attachment {
    filename?: string | undefined;
    /** the "content" may be on of the following: */
    text?: string | undefined;
    /** for binary data, eg.: images */
    buffer?: Buffer | undefined;
    path?: string | undefined;
    content_type?: string | undefined;
    content_disposition?: string | undefined;
    cid?: string | undefined;
    encoding?: string | undefined;
}
/** sendEmail NotificationReq event */
export interface NotificationReq {
    email?: Email | undefined;
    log?: Log | undefined;
    subject?: string | undefined;
    /** text/HTML content */
    body?: string | undefined;
    /** 'email', 'log', ... default == 'log' */
    transport?: string | undefined;
    /** specific transport provider, eg: 'console' for transport == 'log' */
    provider?: string | undefined;
    attachments?: Attachment[] | undefined;
    reference?: Reference | undefined;
}
export interface Email {
    /** array of to email list */
    to?: string[] | undefined;
    /** array of cc email list */
    cc?: string[] | undefined;
    /** array of bcc email list */
    bcc?: string[] | undefined;
    /** if set, the outgoing mail will have this replyTo header set */
    replyto?: string | undefined;
}
export interface Log {
    level?: string | undefined;
}
export declare const Attachment: MessageFns<Attachment>;
export declare const NotificationReq: MessageFns<NotificationReq>;
export declare const Email: MessageFns<Email>;
export declare const Log: MessageFns<Log>;
export type NotificationReqServiceDefinition = typeof NotificationReqServiceDefinition;
export declare const NotificationReqServiceDefinition: {
    readonly name: "NotificationReqService";
    readonly fullName: "io.restorecommerce.notification_req.NotificationReqService";
    readonly methods: {
        /** direct notifications */
        readonly send: {
            readonly name: "Send";
            readonly requestType: typeof NotificationReq;
            readonly requestStream: false;
            readonly responseType: typeof OperationStatusObj;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface NotificationReqServiceImplementation<CallContextExt = {}> {
    /** direct notifications */
    send(request: NotificationReq, context: CallContext & CallContextExt): Promise<DeepPartial<OperationStatusObj>>;
}
export interface NotificationReqServiceClient<CallOptionsExt = {}> {
    /** direct notifications */
    send(request: DeepPartial<NotificationReq>, options?: CallOptions & CallOptionsExt): Promise<OperationStatusObj>;
}
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 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=notification_req.d.ts.map