import { HomepageConfigRule } from '../typing';
export declare const UN_COMMITTED = "MODULE_UN_COMMITTED";
export declare const ALL = "MODULE_ALL";
export declare const sortFn: (a: HomepageConfigRule, b: HomepageConfigRule) => number;
export declare function useHomepageSetting(): {
    getRulesByOption: (option?: {
        module?: string | undefined;
        enabled?: boolean | undefined;
    } | undefined) => HomepageConfigRule[];
    getSavedHomepageConfigRules: () => HomepageConfigRule[];
    getUncommitedHomepageConfigRules: () => HomepageConfigRule[];
    setSavedRules: (rules: HomepageConfigRule[]) => void;
    setUnCommittedRule: (rule: HomepageConfigRule) => void;
    saveUncommitedRules: () => void;
    removeRule: (rule: HomepageConfigRule) => void;
    checkRuleName: (rule: HomepageConfigRule) => boolean;
    sortTwoRules: (ruleA: HomepageConfigRule, ruleB: HomepageConfigRule) => void;
};
