import { AbstractLedgerProvider, Ops } from '@canton-network/core-provider-ledger'; import { type LedgerCommonSchemas } from '@canton-network/core-ledger-client-types'; import { PartyId } from '@canton-network/core-types'; type Types = LedgerCommonSchemas; type Completion = Types['Completion']['value']; export type JSContractEntry = Types['JsContractEntry']; export type JsCantonError = Types['JsCantonError']; export type AcsOptions = { offset?: number; templateIds?: string[]; parties?: string[]; filterByParty?: boolean; interfaceIds?: string[]; limit?: number; continueUntilCompletion?: boolean; }; export type PaginatedAcsOptions = Omit & Pick; type ResolvedOptions = Omit & { offset: number; }; export type ResolvedAcsOptions = ResolvedOptions; export type PaginatedResolvedAcsOptions = ResolvedOptions; export declare class AcsService { private readonly ledgerProvider; constructor(ledgerProvider: AbstractLedgerProvider); getPaginatedActiveContracts(options: Omit & { continueUntilCompletion: true; }): Promise; getPaginatedActiveContracts(options: Omit & { continueUntilCompletion: false; }): Promise; getPaginatedActiveContracts(options: Omit): Promise; getActiveContracts(options: ResolvedAcsOptions): Promise>; private fetchActiveContractsUntilComplete; } export declare function buildActiveContractFilter(options: { offset: number; templateIds?: string[]; parties?: string[]; filterByParty?: boolean; interfaceIds?: string[]; limit?: number; }): Ops.PostV2StateActiveContracts["ledgerApi"]["params"]["body"]; /** * Polls the completions endpoint until * the completion with the given (userId, commandId, submissionId) is returned. * Then returns the updateId, synchronizerId and recordTime of that completion. */ export declare function awaitCompletion(ledgerProvider: AbstractLedgerProvider, ledgerEnd: number, partyId: PartyId, userId: string, commandIdOrSubmissionId: string): Promise; export declare function promiseWithTimeout(promise: Promise, timeoutMs: number, errorMessage: string): Promise; export type RetryableOptions = { retries: number; delayMs: number; cantonErrorKeys: string[]; }; export declare const defaultRetryableOptions: RetryableOptions; export {}; //# sourceMappingURL=service.d.ts.map