import { Address } from '@graphprotocol/common-ts'; import { CloseAllocationResult, CreateAllocationResult, IndexerManagementResolverContext, ReallocateAllocationResult } from '@graphprotocol/indexer-common'; interface AllocationFilter { status: 'active' | 'closed'; allocation: string | null; subgraphDeployment: string | null; protocolNetwork: string | null; } interface AllocationInfo { id: Address; indexer: Address; subgraphDeployment: string; signalledTokens: string; stakedTokens: string; allocatedTokens: string; createdAtEpoch: number; closedAtEpoch: number | null; ageInEpochs: number; closeDeadlineEpoch: number; closeDeadlineBlocksRemaining: number; closeDeadlineTimeRemaining: number; indexingRewards: string; queryFeesCollected: string; status: string; protocolNetwork: string; isLegacy: boolean; } declare const _default: { allocations: ({ filter }: { filter: AllocationFilter; }, { multiNetworks, logger }: IndexerManagementResolverContext) => Promise; createAllocation: ({ deployment, amount, protocolNetwork, }: { deployment: string; amount: string; protocolNetwork: string; }, { multiNetworks, graphNode, logger, models }: IndexerManagementResolverContext) => Promise; closeAllocation: ({ allocation, poi, blockNumber, publicPOI, force, protocolNetwork, }: { allocation: string; poi: string | undefined; blockNumber: string | undefined; publicPOI: string | undefined; force: boolean; protocolNetwork: string; }, { logger, models, multiNetworks }: IndexerManagementResolverContext) => Promise; reallocateAllocation: ({ allocation, poi, blockNumber, publicPOI, amount, force, protocolNetwork, }: { allocation: string; poi: string | undefined; blockNumber: string | undefined; publicPOI: string | undefined; amount: string; force: boolean; protocolNetwork: string; }, { logger, models, multiNetworks, graphNode }: IndexerManagementResolverContext) => Promise; presentPOI: ({ allocation, poi, blockNumber, publicPOI, force, protocolNetwork, }: { allocation: string; poi: string | undefined; blockNumber: string | undefined; publicPOI: string | undefined; force: boolean; protocolNetwork: string; }, { logger, multiNetworks }: IndexerManagementResolverContext) => Promise<{ actionID: number; type: string; transactionID: string | undefined; allocation: string; indexingRewardsCollected: string; protocolNetwork: string; }>; resizeAllocation: ({ allocation, amount, protocolNetwork, }: { allocation: string; amount: string; protocolNetwork: string; }, { logger, models, multiNetworks }: IndexerManagementResolverContext) => Promise<{ actionID: number; type: string; transactionID: string | undefined; allocation: string; previousAmount: string; newAmount: string; protocolNetwork: string; }>; }; export default _default;