import type { SerializedLexicalNode } from 'lexical';
import type { ClientFieldSchemaMap, DocumentPreferences, FieldSchemaMap, FormState, Operation, PayloadRequest, RichTextField, SanitizedFieldPermissions } from 'payload';
export type InitialLexicalFormState = {
    [nodeID: string]: {
        [key: string]: any;
        formState?: FormState;
    };
};
type Props = {
    context: {
        clientFieldSchemaMap: ClientFieldSchemaMap;
        collectionSlug: string;
        field: RichTextField;
        fieldSchemaMap: FieldSchemaMap;
        id?: number | string;
        lexicalFieldSchemaPath: string;
        operation: Operation;
        permissions?: SanitizedFieldPermissions;
        preferences: DocumentPreferences;
        renderFieldFn: any;
        req: PayloadRequest;
    };
    initialState?: InitialLexicalFormState;
    nodeData: SerializedLexicalNode[];
};
export declare function buildInitialState({ context, initialState: initialStateFromArgs, nodeData, }: Props): Promise<InitialLexicalFormState>;
export {};
//# sourceMappingURL=buildInitialState.d.ts.map