@paroicms/server
Version:
The ParoiCMS server
13 lines (12 loc) • 826 B
TypeScript
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;