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.admin.PruneRequest
 */
export interface PruneRequest {
    /**
     * Inclusive valid absolute offset (positive integer) up to which the ledger is to be pruned.
     * By default the following data is pruned:
     *
     * 1. All normal and divulged contracts that have been archived before
     *    `prune_up_to`.
     * 2. All transaction events and completions before `prune_up_to`
     *
     * @generated from protobuf field: int64 prune_up_to = 1
     */
    pruneUpTo: bigint;
    /**
     * Unique submission identifier.
     * Optional, defaults to a random identifier, used for logging.
     *
     * @generated from protobuf field: string submission_id = 2
     */
    submissionId: string;
    /**
     * Prune all immediately and retroactively divulged contracts created before `prune_up_to`
     * independent of whether they were archived before `prune_up_to`. Useful to avoid leaking
     * storage on participant nodes that can see a divulged contract but not its archival.
     *
     * Application developers SHOULD write their Daml applications
     * such that they do not rely on divulged contracts; i.e., no warnings from
     * using divulged contracts as inputs to transactions are emitted.
     *
     * Participant node operators SHOULD set the `prune_all_divulged_contracts` flag to avoid leaking
     * storage due to accumulating unarchived divulged contracts PROVIDED that:
     *
     * 1. no application using this participant node relies on divulgence OR
     * 2. divulged contracts on which applications rely have been re-divulged after the `prune_up_to` offset.
     *
     * @generated from protobuf field: bool prune_all_divulged_contracts = 3
     */
    pruneAllDivulgedContracts: boolean;
}
/**
 * Empty for now, but may contain fields in the future
 *
 * @generated from protobuf message com.daml.ledger.api.v2.admin.PruneResponse
 */
export interface PruneResponse {
}
declare class PruneRequest$Type extends MessageType<PruneRequest> {
    constructor();
    create(value?: PartialMessage<PruneRequest>): PruneRequest;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PruneRequest): PruneRequest;
    internalBinaryWrite(message: PruneRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PruneRequest
 */
export declare const PruneRequest: PruneRequest$Type;
declare class PruneResponse$Type extends MessageType<PruneResponse> {
    constructor();
    create(value?: PartialMessage<PruneResponse>): PruneResponse;
    internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PruneResponse): PruneResponse;
    internalBinaryWrite(message: PruneResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
}
/**
 * @generated MessageType for protobuf message com.daml.ledger.api.v2.admin.PruneResponse
 */
export declare const PruneResponse: PruneResponse$Type;
/**
 * @generated ServiceType for protobuf service com.daml.ledger.api.v2.admin.ParticipantPruningService
 */
export declare const ParticipantPruningService: ServiceType;
export {};
//# sourceMappingURL=participant_pruning_service.d.ts.map