UNPKG

@paroicms/server

Version:
15 lines (14 loc) 866 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, options?: { inRequest?: boolean; }): Promise<void>; export declare function watchForIdleSiteContexts(): void;