import { ServiceType } from '@protobuf-ts/runtime-rpc';
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
import type { IBinaryWriter } from '@protobuf-ts/runtime';
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
import type { IBinaryReader } from '@protobuf-ts/runtime';
import type { PartialMessage } from '@protobuf-ts/runtime';
import { MessageType } from '@protobuf-ts/runtime';
/**
 * @generated from protobuf message com.daml.ledger.api.v2.ListPackagesResponse
 */
export interface ListPackagesResponse {
    /**
     * The IDs of all Daml-LF packages supported by the server.
     * Each element must be a valid PackageIdString (as described in ``value.proto``).
     * Required
     *
     * @generated from protobuf field: repeated string package_ids = 1
     */
    packageIds: string[];
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.GetPackageResponse
 */
export interface GetPackageResponse {
    /**
     * The hash function we use to calculate the hash.
     * Required
     *
     * @generated from protobuf field: com.daml.ledger.api.v2.HashFunction hash_function = 1
     */
    hashFunction: HashFunction;
    /**
     * Contains a ``daml_lf`` ArchivePayload. See further details in ``daml_lf.proto``.
     * Required
     *
     * @generated from protobuf field: bytes archive_payload = 2
     */
    archivePayload: Uint8Array;
    /**
     * The hash of the archive payload, can also used as a ``package_id``.
     * Must be a valid PackageIdString (as described in ``value.proto``).
     * Required
     *
     * @generated from protobuf field: string hash = 3
     */
    hash: string;
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.GetPackageStatusResponse
 */
export interface GetPackageStatusResponse {
    /**
     * The status of the package.
     *
     * @generated from protobuf field: com.daml.ledger.api.v2.PackageStatus package_status = 1
     */
    packageStatus: PackageStatus;
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.ListPackagesRequest
 */
export interface ListPackagesRequest {
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.GetPackageRequest
 */
export interface GetPackageRequest {
    /**
     * The ID of the requested package.
     * Must be a valid PackageIdString (as described in ``value.proto``).
     * Required
     *
     * @generated from protobuf field: string package_id = 1
     */
    packageId: string;
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.GetPackageStatusRequest
 */
export interface GetPackageStatusRequest {
    /**
     * The ID of the requested package.
     * Must be a valid PackageIdString (as described in ``value.proto``).
     * Required
     *
     * @generated from protobuf field: string package_id = 1
     */
    packageId: string;
}
/**
 * @generated from protobuf enum com.daml.ledger.api.v2.PackageStatus
 */
export declare enum PackageStatus {
    /**
     * The server is not aware of such a package.
     *
     * @generated from protobuf enum value: PACKAGE_STATUS_UNSPECIFIED = 0;
     */
    UNSPECIFIED = 0,
    /**
     * The server is able to execute Daml commands operating on this package.
     *
     * @generated from protobuf enum value: PACKAGE_STATUS_REGISTERED = 1;
     */
    REGISTERED = 1
}
/**
 * @generated from protobuf enum com.daml.ledger.api.v2.HashFunction
 */
export declare enum HashFunction {
    /**
     * @generated from protobuf enum value: HASH_FUNCTION_SHA256 = 0;
     */
    SHA256 = 0
}
declare class ListPackagesResponse$Type extends MessageType<ListPackagesResponse> {
    constructor();
    create(value?: PartialMessage<ListPackagesResponse>): ListPackagesResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPackagesResponse): ListPackagesResponse;
    internalBinaryWrite(message: ListPackagesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.ListPackagesResponse
 */
export declare const ListPackagesResponse: ListPackagesResponse$Type;
declare class GetPackageResponse$Type extends MessageType<GetPackageResponse> {
    constructor();
    create(value?: PartialMessage<GetPackageResponse>): GetPackageResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPackageResponse): GetPackageResponse;
    internalBinaryWrite(message: GetPackageResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.GetPackageResponse
 */
export declare const GetPackageResponse: GetPackageResponse$Type;
declare class GetPackageStatusResponse$Type extends MessageType<GetPackageStatusResponse> {
    constructor();
    create(value?: PartialMessage<GetPackageStatusResponse>): GetPackageStatusResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPackageStatusResponse): GetPackageStatusResponse;
    internalBinaryWrite(message: GetPackageStatusResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.GetPackageStatusResponse
 */
export declare const GetPackageStatusResponse: GetPackageStatusResponse$Type;
declare class ListPackagesRequest$Type extends MessageType<ListPackagesRequest> {
    constructor();
    create(value?: PartialMessage<ListPackagesRequest>): ListPackagesRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListPackagesRequest): ListPackagesRequest;
    internalBinaryWrite(message: ListPackagesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.ListPackagesRequest
 */
export declare const ListPackagesRequest: ListPackagesRequest$Type;
declare class GetPackageRequest$Type extends MessageType<GetPackageRequest> {
    constructor();
    create(value?: PartialMessage<GetPackageRequest>): GetPackageRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPackageRequest): GetPackageRequest;
    internalBinaryWrite(message: GetPackageRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.GetPackageRequest
 */
export declare const GetPackageRequest: GetPackageRequest$Type;
declare class GetPackageStatusRequest$Type extends MessageType<GetPackageStatusRequest> {
    constructor();
    create(value?: PartialMessage<GetPackageStatusRequest>): GetPackageStatusRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetPackageStatusRequest): GetPackageStatusRequest;
    internalBinaryWrite(message: GetPackageStatusRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.GetPackageStatusRequest
 */
export declare const GetPackageStatusRequest: GetPackageStatusRequest$Type;
/**
 * @generated ServiceType for protobuf service com.daml.ledger.api.v2.PackageService
 */
export declare const PackageService: ServiceType;
export {};
//# sourceMappingURL=package_service.d.ts.map