import * as viem from 'viem'; import { CannonStorage, ChainBuilderRuntime } from './runtime'; import { CannonRegistry } from './registry'; import { BundledOutput, ChainArtifacts, DeploymentInfo } from './types'; import { PackageReference } from './package-reference'; type CopyPackageOpts = { packageRef: string; chainId: number; tags: string[]; fromStorage: CannonStorage; toStorage: CannonStorage; recursive?: boolean; preset?: string; includeProvisioned?: boolean; }; export interface PackagePublishCall { packagesNames: string[]; chainId: number; url: string; metaUrl: string; } /** * Iterate Depth-First-Search over the given DeploymentInfo and its dependencies, and execute the given `action` function. Postfix execution (aka, `action` is only executed after dependants are completed). * Each package executes one at a time. No paralellization. * @param loader The loader to use for downloading sub-packages * @param deployInfo The head node of the tree, which will be executed on `action` last * @param action The action to execute * @param onlyResultProvisioned Only return results for packages that were provisioned. Useful when publishing. Does not prevent execution of action. */ export declare function forPackageTree(store: CannonStorage, deployInfo: DeploymentInfo, action: (deployInfo: DeploymentInfo, context: BundledOutput | null) => Promise, context?: BundledOutput | null, onlyResultProvisioned?: boolean): Promise; export declare function getDeploymentImports(deployInfo: DeploymentInfo): BundledOutput[]; export declare function pinIpfs(deployInfo: DeploymentInfo, context: BundledOutput | null, fromStorage: CannonStorage, toStorage: CannonStorage, alreadyCopiedIpfs: Map, tags: Array, chainId?: number): Promise; export declare function preparePublishPackage({ packageRef, tags, chainId, fromStorage, toStorage, includeProvisioned, }: CopyPackageOpts): Promise; /** * Copies package info from one storage medium to another (usually local to IPFS) and publishes it to the registry. */ export declare function publishPackage({ packageRef, tags, chainId, fromStorage, toStorage, includeProvisioned, }: CopyPackageOpts): Promise; export declare function findUpgradeFromPackage(registry: CannonRegistry, provider: viem.PublicClient, packageReference: PackageReference, chainId: number, deployers: viem.Address[]): Promise; export declare function writeUpgradeFromInfo(runtime: ChainBuilderRuntime, packageRef: PackageReference, deployUrl: string): Promise; export {}; //# sourceMappingURL=package.d.ts.map