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 { Attribute } from "./attribute";
import { Subject } from "./auth";
import { File } from "./file";
import { Image } from "./image";
import { Meta } from "./meta";
import { DeleteRequest, DeleteResponse, ReadRequest } from "./resource_base";
import { OperationStatus, Status } from "./status";
export declare const protobufPackage = "io.restorecommerce.template";
export declare enum TemplateUseCase {
    /** MISCELLANEOUS - may use attributes for use case identication */
    MISCELLANEOUS = "MISCELLANEOUS",
    INVOICE_PDF = "INVOICE_PDF",
    INVOICE_EMAIL_BODY = "INVOICE_EMAIL_BODY",
    INVOICE_EMAIL_SUBJECT = "INVOICE_EMAIL_SUBJECT",
    INVITATION_EMAIL_BODY = "INVITATION_EMAIL_BODY",
    INVITATION_EMAIL_SUBJECT = "INVITATION_EMAIL_SUBJECT",
    REGISTRATION_EMAIL_BODY = "REGISTRATION_EMAIL_BODY",
    REGISTRATION_EMAIL_SUBJECT = "REGISTRATION_EMAIL_SUBJECT",
    CHANGE_PASSWORD_EMAIL_BODY = "CHANGE_PASSWORD_EMAIL_BODY",
    CHANGE_PASSWORD_EMAIL_SUBJECT = "CHANGE_PASSWORD_EMAIL_SUBJECT",
    ORDER_PRENDING_EMAIL = "ORDER_PRENDING_EMAIL",
    ORDER_SUBMITTED_EMAIL = "ORDER_SUBMITTED_EMAIL",
    ORDER_COMPLETION_EMAIL = "ORDER_COMPLETION_EMAIL",
    ORDER_CANCELATION_EMAIL = "ORDER_CANCELATION_EMAIL",
    ORDER_WITHDRAWN_EMAIL = "ORDER_WITHDRAWN_EMAIL",
    ORDER_INVALID_EMAIL = "ORDER_INVALID_EMAIL",
    FULFILLMENT_PENDING_EMAIL = "FULFILLMENT_PENDING_EMAIL",
    FULFILLMENT_SUBMITTED_EMAIL = "FULFILLMENT_SUBMITTED_EMAIL",
    FULFILLMENT_COMPLETION_EMAIL = "FULFILLMENT_COMPLETION_EMAIL",
    FULFILLMENT_CANCELATION_EMAIL = "FULFILLMENT_CANCELATION_EMAIL",
    FULFILLMENT_WITHDRAWN_EMAIL = "FULFILLMENT_WITHDRAWN_EMAIL",
    FULFILLMENT_FAILED_EMAIL = "FULFILLMENT_FAILED_EMAIL",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function templateUseCaseFromJSON(object: any): TemplateUseCase;
export declare function templateUseCaseToJSON(object: TemplateUseCase): string;
export declare function templateUseCaseToNumber(object: TemplateUseCase): number;
export interface TemplateList {
    items?: Template[] | undefined;
    totalCount?: number | undefined;
    subject?: Subject | undefined;
}
export interface TemplateListResponse {
    items?: TemplateResponse[] | undefined;
    totalCount?: number | undefined;
    operationStatus?: OperationStatus | undefined;
}
export interface TemplateResponse {
    payload?: Template | undefined;
    status?: Status | undefined;
}
export interface Localization {
    /** locales suported by this file e.g. en, en_US, en_UK, ... */
    locales?: string[] | undefined;
    /** JSON or CSV */
    l10n?: File | undefined;
}
export interface Template {
    id?: string | undefined;
    meta?: Meta | undefined;
    name?: string | undefined;
    description?: string | undefined;
    /** URN or ENUM to identify what this template is used for */
    useCase?: string | undefined;
    /** sort number */
    ordinal?: number | undefined;
    /** e.g. header, body, footer */
    section?: string | undefined;
    /** e.g. text/html */
    bodies?: File[] | undefined;
    layouts?: File[] | undefined;
    /** e.g. application/css */
    styles?: File[] | undefined;
    images?: Image[] | undefined;
    localizations?: Localization[] | undefined;
    attributes?: Attribute[] | undefined;
}
export declare const TemplateList: MessageFns<TemplateList>;
export declare const TemplateListResponse: MessageFns<TemplateListResponse>;
export declare const TemplateResponse: MessageFns<TemplateResponse>;
export declare const Localization: MessageFns<Localization>;
export declare const Template: MessageFns<Template>;
/** Microservice definition. */
export type TemplateServiceDefinition = typeof TemplateServiceDefinition;
export declare const TemplateServiceDefinition: {
    readonly name: "TemplateService";
    readonly fullName: "io.restorecommerce.template.TemplateService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof TemplateListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof TemplateList;
            readonly requestStream: false;
            readonly responseType: typeof TemplateListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly delete: {
            readonly name: "Delete";
            readonly requestType: typeof DeleteRequest;
            readonly requestStream: false;
            readonly responseType: typeof DeleteResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly update: {
            readonly name: "Update";
            readonly requestType: typeof TemplateList;
            readonly requestStream: false;
            readonly responseType: typeof TemplateListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof TemplateList;
            readonly requestStream: false;
            readonly responseType: typeof TemplateListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface TemplateServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<TemplateListResponse>>;
    create(request: TemplateList, context: CallContext & CallContextExt): Promise<DeepPartial<TemplateListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
    update(request: TemplateList, context: CallContext & CallContextExt): Promise<DeepPartial<TemplateListResponse>>;
    upsert(request: TemplateList, context: CallContext & CallContextExt): Promise<DeepPartial<TemplateListResponse>>;
}
export interface TemplateServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<TemplateListResponse>;
    create(request: DeepPartial<TemplateList>, options?: CallOptions & CallOptionsExt): Promise<TemplateListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
    update(request: DeepPartial<TemplateList>, options?: CallOptions & CallOptionsExt): Promise<TemplateListResponse>;
    upsert(request: DeepPartial<TemplateList>, options?: CallOptions & CallOptionsExt): Promise<TemplateListResponse>;
}
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=template.d.ts.map