myst-cli
Version:
Command line tools for MyST
51 lines • 3.26 kB
TypeScript
import type { ProjectConfig, SiteConfig } from 'myst-config';
import type { LocalProject } from '../project/types.js';
import type { RootState } from './reducers.js';
import type { BuildWarning, ExternalLinkResult, ValidatedRawConfig } from './types.js';
export declare function selectLocalProject(state: RootState, path: string): LocalProject | undefined;
export declare function selectAffiliation(state: RootState, id: string): string | undefined;
export declare function selectLocalSiteConfig(state: RootState, path: string): SiteConfig | undefined;
export declare function selectCurrentSiteConfig(state: RootState): SiteConfig | undefined;
export declare function selectCurrentSitePath(state: RootState): string | undefined;
export declare function selectCurrentSiteFile(state: RootState): string | undefined;
export declare function selectLocalProjectConfig(state: RootState, path: string): ProjectConfig | undefined;
export declare function selectCurrentProjectConfig(state: RootState): ProjectConfig | undefined;
export declare function selectProjectParts(state: RootState, path: string): string[];
export declare function selectFileParts(state: RootState, file: string): string[];
export declare function selectFileFromPart(state: RootState, partFile: string): string | undefined;
export declare function selectCurrentProjectPath(state: RootState): string | undefined;
export declare function selectCurrentProjectFile(state: RootState): string | undefined;
export declare function selectLocalConfigFile(state: RootState, path: string): string | undefined;
export declare function selectLocalRawConfig(state: RootState, path: string): {
raw: Record<string, any>;
validated: ValidatedRawConfig;
} | undefined;
export declare function selectConfigExtensions(state: RootState): string[];
export declare function selectReloadingState(state: RootState): {
reloading: boolean;
reloadRequested: boolean;
};
export declare function selectFileInfo(state: RootState, path: string): {
title: string | null | undefined;
short_title: string | null | undefined;
description: string | null | undefined;
date: string | null | undefined;
thumbnail: string | null | undefined;
thumbnailOptimized: string | null | undefined;
banner: string | null | undefined;
bannerOptimized: string | null | undefined;
tags: string[] | null | undefined;
sha256: string | null | undefined;
url: string | null | undefined;
dataUrl: string | null | undefined;
};
export declare function selectFileDependencies(state: RootState, path: string): string[];
export declare function selectAllDependencies(state: RootState, projectPath?: string): string[];
export declare function selectDependentFiles(state: RootState, path: string): string[];
export declare function selectPageSlug(state: RootState, projectPath: string, path: string): string | undefined;
export declare function selectLinkStatus(state: RootState, url: string): ExternalLinkResult | undefined;
export declare function selectFileWarnings(state: RootState, file: string): BuildWarning[] | undefined;
export declare function selectFileWarningsByRule(state: RootState, ruleId: string): (BuildWarning & {
file: string;
})[];
//# sourceMappingURL=selectors.d.ts.map