type ActionNames = 'AddTag' | 'Change priority' | 'Copy to folder' | 'Custom' | 'Delete from Pop3 server' | 'Delete' | 'Fetch body from Pop3Server' | 'Forward' | 'Ignore subthread' | 'Ignore thread' | 'JunkScore' | 'Label' | 'Leave on Pop3 server' | 'Mark flagged' | 'Mark read' | 'Mark unread' | 'Move to folder' | 'Reply' | 'Stop execution' | 'Watch thread';
interface Action {
    name: ActionNames;
    value?: string;
}
interface Rule {
    name: string;
    enabled: 'yes' | 'no';
    type: '17' | '145';
    actions: Action[];
    condition: string;
}
interface Rules {
    version: '9';
    logging: 'yes' | 'no';
    rules: Rule[];
}
export declare function format(msgRules: Rules): string;
export declare function parse(msgRulesRaw: string): Rules;
export {};
//# sourceMappingURL=index.d.ts.map