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';
import { Timestamp } from '../../../../../../google/protobuf/timestamp.js';
/**
 * @generated from protobuf message com.daml.ledger.api.v2.admin.ListKnownPackagesRequest
 */
export interface ListKnownPackagesRequest {
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.admin.ListKnownPackagesResponse
 */
export interface ListKnownPackagesResponse {
    /**
     * The details of all Daml-LF packages known to backing participant.
     * Required
     *
     * @generated from protobuf field: repeated com.daml.ledger.api.v2.admin.PackageDetails package_details = 1
     */
    packageDetails: PackageDetails[];
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.admin.PackageDetails
 */
export interface PackageDetails {
    /**
     * The identity of the Daml-LF package.
     * Must be a valid PackageIdString (as describe in ``value.proto``).
     * Required
     *
     * @generated from protobuf field: string package_id = 1
     */
    packageId: string;
    /**
     * Size of the package in bytes.
     * The size of the package is given by the size of the ``daml_lf``
     * ArchivePayload. See further details in ``daml_lf.proto``.
     * Required
     *
     * @generated from protobuf field: uint64 package_size = 2
     */
    packageSize: bigint;
    /**
     * Indicates since when the package is known to the backing participant.
     * Required
     *
     * @generated from protobuf field: google.protobuf.Timestamp known_since = 3
     */
    knownSince?: Timestamp;
    /**
     * Name of the package as defined by the package metadata
     *
     * @generated from protobuf field: string name = 4
     */
    name: string;
    /**
     * Version of the package as defined by the package metadata
     *
     * @generated from protobuf field: string version = 5
     */
    version: string;
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.admin.UploadDarFileRequest
 */
export interface UploadDarFileRequest {
    /**
     * Contains a Daml archive DAR file, which in turn is a jar like zipped
     * container for ``daml_lf`` archives. See further details in
     * ``daml_lf.proto``.
     * Required
     *
     * @generated from protobuf field: bytes dar_file = 1
     */
    darFile: Uint8Array;
    /**
     * Unique submission identifier.
     * Optional, defaults to a random identifier.
     *
     * @generated from protobuf field: string submission_id = 2
     */
    submissionId: string;
}
/**
 * A message that is received when the upload operation succeeded.
 *
 * @generated from protobuf message com.daml.ledger.api.v2.admin.UploadDarFileResponse
 */
export interface UploadDarFileResponse {
}
/**
 * Performs the same checks that UploadDarFileRequest would perform, but doesn't
 * upload the DAR.
 *
 * @generated from protobuf message com.daml.ledger.api.v2.admin.ValidateDarFileRequest
 */
export interface ValidateDarFileRequest {
    /**
     * Contains a Daml archive DAR file, which in turn is a jar like zipped
     * container for ``daml_lf`` archives. See further details in
     * ``daml_lf.proto``.
     * Required
     *
     * @generated from protobuf field: bytes dar_file = 1
     */
    darFile: Uint8Array;
    /**
     * Unique submission identifier.
     * Optional, defaults to a random identifier.
     *
     * @generated from protobuf field: string submission_id = 2
     */
    submissionId: string;
}
/**
 * @generated from protobuf message com.daml.ledger.api.v2.admin.ValidateDarFileResponse
 */
export interface ValidateDarFileResponse {
}
declare class ListKnownPackagesRequest$Type extends MessageType<ListKnownPackagesRequest> {
    constructor();
    create(value?: PartialMessage<ListKnownPackagesRequest>): ListKnownPackagesRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListKnownPackagesRequest): ListKnownPackagesRequest;
    internalBinaryWrite(message: ListKnownPackagesRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ListKnownPackagesRequest
 */
export declare const ListKnownPackagesRequest: ListKnownPackagesRequest$Type;
declare class ListKnownPackagesResponse$Type extends MessageType<ListKnownPackagesResponse> {
    constructor();
    create(value?: PartialMessage<ListKnownPackagesResponse>): ListKnownPackagesResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListKnownPackagesResponse): ListKnownPackagesResponse;
    internalBinaryWrite(message: ListKnownPackagesResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ListKnownPackagesResponse
 */
export declare const ListKnownPackagesResponse: ListKnownPackagesResponse$Type;
declare class PackageDetails$Type extends MessageType<PackageDetails> {
    constructor();
    create(value?: PartialMessage<PackageDetails>): PackageDetails;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PackageDetails): PackageDetails;
    internalBinaryWrite(message: PackageDetails, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PackageDetails
 */
export declare const PackageDetails: PackageDetails$Type;
declare class UploadDarFileRequest$Type extends MessageType<UploadDarFileRequest> {
    constructor();
    create(value?: PartialMessage<UploadDarFileRequest>): UploadDarFileRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadDarFileRequest): UploadDarFileRequest;
    internalBinaryWrite(message: UploadDarFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.UploadDarFileRequest
 */
export declare const UploadDarFileRequest: UploadDarFileRequest$Type;
declare class UploadDarFileResponse$Type extends MessageType<UploadDarFileResponse> {
    constructor();
    create(value?: PartialMessage<UploadDarFileResponse>): UploadDarFileResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UploadDarFileResponse): UploadDarFileResponse;
    internalBinaryWrite(message: UploadDarFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.UploadDarFileResponse
 */
export declare const UploadDarFileResponse: UploadDarFileResponse$Type;
declare class ValidateDarFileRequest$Type extends MessageType<ValidateDarFileRequest> {
    constructor();
    create(value?: PartialMessage<ValidateDarFileRequest>): ValidateDarFileRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ValidateDarFileRequest): ValidateDarFileRequest;
    internalBinaryWrite(message: ValidateDarFileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ValidateDarFileRequest
 */
export declare const ValidateDarFileRequest: ValidateDarFileRequest$Type;
declare class ValidateDarFileResponse$Type extends MessageType<ValidateDarFileResponse> {
    constructor();
    create(value?: PartialMessage<ValidateDarFileResponse>): ValidateDarFileResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ValidateDarFileResponse): ValidateDarFileResponse;
    internalBinaryWrite(message: ValidateDarFileResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.ValidateDarFileResponse
 */
export declare const ValidateDarFileResponse: ValidateDarFileResponse$Type;
/**
 * @generated ServiceType for protobuf service com.daml.ledger.api.v2.admin.PackageManagementService
 */
export declare const PackageManagementService: ServiceType;
export {};
//# sourceMappingURL=package_management_service.d.ts.map