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 { Subject } from "./auth";
import { Meta } from "./meta";
import { DeleteRequest, DeleteResponse, ReadRequest } from "./resource_base";
import { OperationStatus, Status } from "./status";
export declare const protobufPackage = "io.restorecommerce.currency";
export declare enum SymbolAlignment {
    surfix = "surfix",
    prefix = "prefix",
    UNRECOGNIZED = "UNRECOGNIZED"
}
export declare function symbolAlignmentFromJSON(object: any): SymbolAlignment;
export declare function symbolAlignmentToJSON(object: SymbolAlignment): string;
export declare function symbolAlignmentToNumber(object: SymbolAlignment): number;
export interface CurrencyList {
    items?: Currency[] | undefined;
    total_count?: number | undefined;
    subject?: Subject | undefined;
}
export interface CurrencyListResponse {
    items?: CurrencyResponse[] | undefined;
    total_count?: number | undefined;
    operation_status?: OperationStatus | undefined;
}
export interface CurrencyResponse {
    payload?: Currency | undefined;
    status?: Status | undefined;
}
export interface Currency {
    id?: string | undefined;
    meta?: Meta | undefined;
    name?: string | undefined;
    symbol?: string | undefined;
    country_ids?: string[] | undefined;
    /**
     * For custom exchange rates beyond market.
     * Regular rates should be retrived from any API.
     */
    custom_exchange_rates?: ExchangeRate[] | undefined;
    precision?: number | undefined;
    code?: string | undefined;
}
export interface ExchangeRate {
    to_currency_id?: string | undefined;
    rate?: number | undefined;
    /** fees */
    expenses?: number | undefined;
    /** leave empty == 1.0 */
    amount?: number | undefined;
}
export declare const CurrencyList: MessageFns<CurrencyList>;
export declare const CurrencyListResponse: MessageFns<CurrencyListResponse>;
export declare const CurrencyResponse: MessageFns<CurrencyResponse>;
export declare const Currency: MessageFns<Currency>;
export declare const ExchangeRate: MessageFns<ExchangeRate>;
/** Microservice definition. */
export type CurrencyServiceDefinition = typeof CurrencyServiceDefinition;
export declare const CurrencyServiceDefinition: {
    readonly name: "CurrencyService";
    readonly fullName: "io.restorecommerce.currency.CurrencyService";
    readonly methods: {
        readonly read: {
            readonly name: "Read";
            readonly requestType: typeof ReadRequest;
            readonly requestStream: false;
            readonly responseType: typeof CurrencyListResponse;
            readonly responseStream: false;
            readonly options: {
                readonly _unknownFields: {
                    readonly 248008: readonly [Buffer<ArrayBufferLike>];
                };
            };
        };
        readonly create: {
            readonly name: "Create";
            readonly requestType: typeof CurrencyList;
            readonly requestStream: false;
            readonly responseType: typeof CurrencyListResponse;
            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 CurrencyList;
            readonly requestStream: false;
            readonly responseType: typeof CurrencyListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
        readonly upsert: {
            readonly name: "Upsert";
            readonly requestType: typeof CurrencyList;
            readonly requestStream: false;
            readonly responseType: typeof CurrencyListResponse;
            readonly responseStream: false;
            readonly options: {};
        };
    };
};
export interface CurrencyServiceImplementation<CallContextExt = {}> {
    read(request: ReadRequest, context: CallContext & CallContextExt): Promise<DeepPartial<CurrencyListResponse>>;
    create(request: CurrencyList, context: CallContext & CallContextExt): Promise<DeepPartial<CurrencyListResponse>>;
    delete(request: DeleteRequest, context: CallContext & CallContextExt): Promise<DeepPartial<DeleteResponse>>;
    update(request: CurrencyList, context: CallContext & CallContextExt): Promise<DeepPartial<CurrencyListResponse>>;
    upsert(request: CurrencyList, context: CallContext & CallContextExt): Promise<DeepPartial<CurrencyListResponse>>;
}
export interface CurrencyServiceClient<CallOptionsExt = {}> {
    read(request: DeepPartial<ReadRequest>, options?: CallOptions & CallOptionsExt): Promise<CurrencyListResponse>;
    create(request: DeepPartial<CurrencyList>, options?: CallOptions & CallOptionsExt): Promise<CurrencyListResponse>;
    delete(request: DeepPartial<DeleteRequest>, options?: CallOptions & CallOptionsExt): Promise<DeleteResponse>;
    update(request: DeepPartial<CurrencyList>, options?: CallOptions & CallOptionsExt): Promise<CurrencyListResponse>;
    upsert(request: DeepPartial<CurrencyList>, options?: CallOptions & CallOptionsExt): Promise<CurrencyListResponse>;
}
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=currency.d.ts.map