import { PayloadAction } from "@reduxjs/toolkit";
import { CodeGenCSSType, PageSuggestion, Project } from "../../data/types";
import { OpsTransaction } from "../../liveblocks/liveblocks-client";
export interface ProjectsState {
    id: string | null;
    project: Project | null;
    nextCommitVersion: number | null;
    subframeImportAlias: string | null;
    opsTransactionId: string | null;
    localOps: OpsTransaction[];
    subframeVersion: string | null;
    companyName: string | null;
    companyContext: string | null;
    pageSuggestions: PageSuggestion[] | null;
    schemaVersion: number | null;
}
export declare const projectsSlice: import("@reduxjs/toolkit").Slice<ProjectsState, {
    updateProjectRaw: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<{
        id: string;
        project: Project;
        commitVersion: number;
        subframeImportAlias: string;
        opsTransactionId: string | null;
        schemaVersion: number;
    }>) => void;
    updateProjectCompanyName: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<{
        companyName: string | null;
    }>) => void;
    updateProjectCompanyContext: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<{
        companyContext: string | null;
    }>) => void;
    updateProjectPageSuggestions: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<{
        pageSuggestions: PageSuggestion[] | null;
    }>) => void;
    updateSubframeVersion: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<{
        subframeVersion: string;
    }>) => void;
    updateProjectCSSPreference: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<{
        cssType: CodeGenCSSType;
    }>) => void;
    pushOpsTransaction: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<OpsTransaction>) => void;
    updateLocalOps: (state: import("immer/dist/internal").WritableDraft<ProjectsState>, action: PayloadAction<OpsTransaction[]>) => void;
    bumpCommitVersion: (state: import("immer/dist/internal").WritableDraft<ProjectsState>) => void;
}, "projects">;
export declare const updateProjectRaw: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
    id: string;
    project: Project;
    commitVersion: number;
    subframeImportAlias: string;
    opsTransactionId: string | null;
    schemaVersion: number;
}, "projects/updateProjectRaw">, updateProjectCompanyName: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
    companyName: string | null;
}, "projects/updateProjectCompanyName">, updateProjectCompanyContext: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
    companyContext: string | null;
}, "projects/updateProjectCompanyContext">, updateProjectPageSuggestions: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
    pageSuggestions: PageSuggestion[] | null;
}, "projects/updateProjectPageSuggestions">, updateSubframeVersion: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
    subframeVersion: string;
}, "projects/updateSubframeVersion">, bumpCommitVersion: import("@reduxjs/toolkit").ActionCreatorWithoutPayload<"projects/bumpCommitVersion">, updateProjectCSSPreference: import("@reduxjs/toolkit").ActionCreatorWithPayload<{
    cssType: CodeGenCSSType;
}, "projects/updateProjectCSSPreference">, pushOpsTransaction: import("@reduxjs/toolkit").ActionCreatorWithPayload<OpsTransaction, "projects/pushOpsTransaction">, updateLocalOps: import("@reduxjs/toolkit").ActionCreatorWithPayload<OpsTransaction[], "projects/updateLocalOps">;
export declare const projectReducer: import("redux").Reducer<ProjectsState>;
//# sourceMappingURL=projects.d.ts.map