UNPKG

@paroicms/server

Version:
13 lines (12 loc) 826 B
import type { MigrationSiteContext, SiteContext } from "./site-context.types.js"; export declare function getActiveSiteContexts(): (SiteContext | MigrationSiteContext)[]; export declare function getActiveSiteContext(fqdn: string): SiteContext | MigrationSiteContext; export declare function getActiveSiteContext(fqdn: string, options: { returnsUndef: true; }): SiteContext | MigrationSiteContext | undefined; export declare function getSiteContext(fqdn: string): Promise<SiteContext | MigrationSiteContext>; export declare function getSiteContext(fqdn: string, options: { returnsUndef: true; }): Promise<SiteContext | MigrationSiteContext | undefined>; export declare function unloadSiteContext(siteContext: SiteContext | MigrationSiteContext): Promise<void>; export declare function watchForIdleSiteContexts(): void;