import type { PayloadAction } from '@reduxjs/toolkit'; import type { ProjectConfig, SiteConfig } from 'myst-config'; import type { BuildWarning, ExternalLinkResult, ValidatedRawConfig } from './types.js'; import type { LocalProject } from '../project/types.js'; export declare const projects: import("@reduxjs/toolkit").Slice, { receive(state: { [x: string]: { path: string; file: string; index: string; implicitIndex?: boolean | undefined; bibliography: string[]; pages: ({ title: string; level: import("../project/types.js").PageLevels; } | { file: string; slug: string; level: import("../project/types.js").PageLevels; title?: string | undefined; implicit?: boolean | undefined; } | { url: string; title: string; level: import("../project/types.js").PageLevels; open_in_same_tab?: boolean | undefined; })[]; }; }, action: PayloadAction): void; }, "projects", "projects", import("@reduxjs/toolkit").SliceSelectors>>; export declare const affiliations: import("@reduxjs/toolkit").Slice, { receive(state: { [x: string]: string; }, action: PayloadAction<{ affiliations: { id: string; text: string; }[]; }>): void; }, "affiliations", "affiliations", import("@reduxjs/toolkit").SliceSelectors>>; export declare const config: import("@reduxjs/toolkit").Slice<{ currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: Record; validated: ValidatedRawConfig; }>; projects: Record>; projectParts: Record; fileParts: Record; sites: Record>; filenames: Record; configExtensions?: string[]; }, { receiveCurrentProjectPath(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction<{ path: string; }>): void; receiveCurrentSitePath(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction<{ path: string; }>): void; receiveRawConfig(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction<{ raw: Record; validated: ValidatedRawConfig; path: string; file: string; }>): void; receiveSiteConfig(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction): void; receiveProjectConfig(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction): void; receiveConfigExtension(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction<{ file: string; }>): void; receiveProjectPart(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction<{ partFile: string; path: string; }>): void; receiveFilePart(state: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: { [x: string]: { raw: { [x: string]: any; }; validated: { site?: { [x: string]: any; } | undefined; project?: { [x: string]: any; } | undefined; extend?: string[] | undefined; }; }; }; projects: { [x: string]: { [x: string]: any; }; }; projectParts: { [x: string]: string[]; }; fileParts: { [x: string]: string[]; }; sites: { [x: string]: { [x: string]: any; }; }; filenames: { [x: string]: string; }; configExtensions?: string[] | undefined; }, action: PayloadAction<{ partFile: string; file: string; }>): void; }, "config", "config", import("@reduxjs/toolkit").SliceSelectors<{ currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: Record; validated: ValidatedRawConfig; }>; projects: Record>; projectParts: Record; fileParts: Record; sites: Record>; filenames: Record; configExtensions?: string[]; }>>; type WatchedFile = { title?: string | null; short_title?: string | null; description?: string | null; date?: string | null; thumbnail?: string | null; thumbnailOptimized?: string | null; banner?: string | null; bannerOptimized?: string | null; tags?: string[] | null; sha256?: string | null; url?: string | null; dataUrl?: string | null; localDependencies?: string[] | null; }; export declare const watch: import("@reduxjs/toolkit").Slice<{ files: Record; reloading: boolean; reloadRequested: boolean; }, { markReloading(state: { files: { [x: 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; localDependencies?: string[] | null | undefined; }; }; reloading: boolean; reloadRequested: boolean; }, action: PayloadAction): void; markReloadRequested(state: { files: { [x: 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; localDependencies?: string[] | null | undefined; }; }; reloading: boolean; reloadRequested: boolean; }, action: PayloadAction): void; markFileChanged(state: { files: { [x: 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; localDependencies?: string[] | null | undefined; }; }; reloading: boolean; reloadRequested: boolean; }, action: PayloadAction<{ path: string; sha256?: string; }>): void; addLocalDependency(state: { files: { [x: 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; localDependencies?: string[] | null | undefined; }; }; reloading: boolean; reloadRequested: boolean; }, action: PayloadAction<{ path: string; dependency: string; }>): void; updateFileInfo(state: { files: { [x: 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; localDependencies?: string[] | null | undefined; }; }; reloading: boolean; reloadRequested: boolean; }, action: PayloadAction<{ path: string; title?: string | null; short_title?: string | null; description?: string | null; date?: string | null; thumbnail?: string | null; thumbnailOptimized?: string; banner?: string | null; bannerOptimized?: string | null; tags?: string[] | null; sha256?: string; url?: string; dataUrl?: string; }>): void; }, "watch", "watch", import("@reduxjs/toolkit").SliceSelectors<{ files: Record; reloading: boolean; reloadRequested: boolean; }>>; export declare const links: import("@reduxjs/toolkit").Slice, { updateLink(state: { [x: string]: { url: string; ok?: boolean | undefined; skipped?: boolean | undefined; status?: number | undefined; statusText?: string | undefined; }; }, action: PayloadAction): void; }, "links", "links", import("@reduxjs/toolkit").SliceSelectors>>; export declare const warnings: import("@reduxjs/toolkit").Slice, { addWarning(state: { [x: string]: { message: string; kind: import("./types.js").WarningKind; note?: string | null | undefined; url?: string | null | undefined; position?: { start: { line: number; column: number; offset?: number | undefined | undefined; }; end: { line: number; column: number; offset?: number | undefined | undefined; }; indent?: number[] | undefined | undefined; } | null | undefined; ruleId?: string | null | undefined; }[]; }, action: PayloadAction<{ file: string; } & BuildWarning>): void; clearWarnings(state: { [x: string]: { message: string; kind: import("./types.js").WarningKind; note?: string | null | undefined; url?: string | null | undefined; position?: { start: { line: number; column: number; offset?: number | undefined | undefined; }; end: { line: number; column: number; offset?: number | undefined | undefined; }; indent?: number[] | undefined | undefined; } | null | undefined; ruleId?: string | null | undefined; }[]; }, action: PayloadAction<{ file: string; }>): void; clearAllWarnings(state: { [x: string]: { message: string; kind: import("./types.js").WarningKind; note?: string | null | undefined; url?: string | null | undefined; position?: { start: { line: number; column: number; offset?: number | undefined | undefined; }; end: { line: number; column: number; offset?: number | undefined | undefined; }; indent?: number[] | undefined | undefined; } | null | undefined; ruleId?: string | null | undefined; }[]; }): void; }, "warnings", "warnings", import("@reduxjs/toolkit").SliceSelectors>>; export declare const localReducer: import("redux").Reducer<{ projects: Record; affiliations: Record; config: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: Record; validated: ValidatedRawConfig; }>; projects: Record>; projectParts: Record; fileParts: Record; sites: Record>; filenames: Record; configExtensions?: string[]; }; watch: { files: Record; reloading: boolean; reloadRequested: boolean; }; links: Record; warnings: Record; }, import("redux").UnknownAction, Partial<{ projects: Record | undefined; affiliations: Record | undefined; config: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: Record; validated: ValidatedRawConfig; }>; projects: Record>; projectParts: Record; fileParts: Record; sites: Record>; filenames: Record; configExtensions?: string[]; } | undefined; watch: { files: Record; reloading: boolean; reloadRequested: boolean; } | undefined; links: Record | undefined; warnings: Record | undefined; }>>; export declare const rootReducer: import("redux").Reducer<{ local: { projects: Record; affiliations: Record; config: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: Record; validated: ValidatedRawConfig; }>; projects: Record>; projectParts: Record; fileParts: Record; sites: Record>; filenames: Record; configExtensions?: string[]; }; watch: { files: Record; reloading: boolean; reloadRequested: boolean; }; links: Record; warnings: Record; }; }, import("redux").UnknownAction, Partial<{ local: { projects: Record; affiliations: Record; config: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: Record; validated: ValidatedRawConfig; }>; projects: Record>; projectParts: Record; fileParts: Record; sites: Record>; filenames: Record; configExtensions?: string[]; }; watch: { files: Record; reloading: boolean; reloadRequested: boolean; }; links: Record; warnings: Record; } | Partial<{ projects: Record | undefined; affiliations: Record | undefined; config: { currentProjectPath: string | undefined; currentSitePath: string | undefined; rawConfigs: Record; validated: ValidatedRawConfig; }>; projects: Record>; projectParts: Record; fileParts: Record; sites: Record>; filenames: Record; configExtensions?: string[]; } | undefined; watch: { files: Record; reloading: boolean; reloadRequested: boolean; } | undefined; links: Record | undefined; warnings: Record | undefined; }> | undefined; }>>; export type RootState = ReturnType; export {}; //# sourceMappingURL=reducers.d.ts.map