import type { LifecycleState, Request } from "../../schemas/index"; export interface SuspendableSwarm { readonly suspended: boolean; suspend(): Promise; resume(): Promise; } export interface SuspendableStore { suspend(): Promise; resume(): Promise; } interface ResourceMeta { label: string; createdAt: number; } export declare function registerSwarm(swarm: SuspendableSwarm, meta: ResourceMeta): void; export declare function unregisterSwarm(swarm: SuspendableSwarm): void; export declare function registerCorestore(store: SuspendableStore, meta: ResourceMeta): void; export declare function unregisterCorestore(store: SuspendableStore): void; export declare function getLifecycleState(): LifecycleState; export declare function assertLifecycleAllowed(request: Request): void; export declare function getRegisteredResourceCounts(): { swarms: number; stores: number; }; export declare function resetLifecycleState(): void; export declare function suspendRuntime(): Promise; export declare function resumeRuntime(): Promise; export {}; //# sourceMappingURL=runtime-lifecycle.d.ts.map