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