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 { OperationStatus, Status } from "./status";
export declare const protobufPackage = "io.restorecommerce.rendering";
export interface RenderRequest {
    id?: string | undefined;
    templates?: RenderRequest_Template[] | undefined;
    /** data to fill template with */
    data?: Any | undefined;
    /** stylesheet URL */
    styleUrl?: string | undefined;
    /** inlining, copying CSS into <style>, etc... */
    strategy?: RenderRequest_Strategy | undefined;
    /** rendering options JSON object */
    options?: Any | undefined;
    /** content type for rendering such as 'application/html' or 'application/text' */
    contentType?: string | undefined;
}
/** style-applying 'strategy' */
export declare enum RenderRequest_Strategy {
    INLINE = "INLINE",
    COPY = "COPY",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function renderRequest_StrategyFromJSON(object: any): RenderRequest_Strategy;
export declare function renderRequest_StrategyToJSON(object: RenderRequest_Strategy): string;
export declare function renderRequest_StrategyToNumber(object: RenderRequest_Strategy): number;
export interface RenderRequest_Template {
    /** snippit name */
    id?: string | undefined;
    body?: Buffer | undefined;
    layout?: Buffer | undefined;
    /** defaults to utf-8 */
    charset?: string | undefined;
}
export interface RenderRequestList {
    /** identifies the render request payload */
    id?: string | undefined;
    /** List of templates with associated data and rendering options */
    items?: RenderRequest[] | undefined;
    subject?: Subject | undefined;
}
export interface RenderResult {
    /** snippit name */
    id?: string | undefined;
    bodies?: RenderResult_Bodies[] | undefined;
    /** content type for rendering such as 'application/html' or 'application/text' */
    contentType?: string | undefined;
}
export interface RenderResult_Bodies {
    /** snippit name */
    id?: string | undefined;
    body?: Buffer | undefined;
    /** defaults to utf-8 */
    charset?: string | undefined;
}
export interface RenderResponse {
    payload?: RenderResult | undefined;
    status?: Status | undefined;
}
export interface RenderResponseList {
    id?: string | undefined;
    items?: RenderResponse[] | undefined;
    operationStatus?: OperationStatus | undefined;
}
export declare const RenderRequest: MessageFns<RenderRequest>;
export declare const RenderRequest_Template: MessageFns<RenderRequest_Template>;
export declare const RenderRequestList: MessageFns<RenderRequestList>;
export declare const RenderResult: MessageFns<RenderResult>;
export declare const RenderResult_Bodies: MessageFns<RenderResult_Bodies>;
export declare const RenderResponse: MessageFns<RenderResponse>;
export declare const RenderResponseList: MessageFns<RenderResponseList>;
/** Microservice definition. */
export type RenderingServiceDefinition = typeof RenderingServiceDefinition;
export declare const RenderingServiceDefinition: {
    readonly name: "RenderingService";
    readonly fullName: "io.restorecommerce.rendering.RenderingService";
    readonly methods: {
        readonly render: {
            readonly name: "Render";
            readonly requestType: typeof RenderRequestList;
            readonly requestStream: false;
            readonly responseType: typeof RenderResponseList;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface RenderingServiceImplementation<CallContextExt = {}> {
    render(request: RenderRequestList, context: CallContext & CallContextExt): Promise<DeepPartial<RenderResponseList>>;
}
export interface RenderingServiceClient<CallOptionsExt = {}> {
    render(request: DeepPartial<RenderRequestList>, options?: CallOptions & CallOptionsExt): Promise<RenderResponseList>;
}
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=rendering.d.ts.map