/**
 * Workflow rule operations.
 */
import { WorkflowRule, WorkflowRuleFilter } from '../types.js';
import { StorageContext } from './types.js';
export declare class WorkflowRuleStorage {
    private ctx;
    constructor(ctx: StorageContext);
    /**
     * List workflow rules.
     */
    listWorkflowRules(filter?: WorkflowRuleFilter): Promise<WorkflowRule[]>;
    /**
     * Get a workflow rule by ID.
     */
    getWorkflowRule(id: string): Promise<WorkflowRule | null>;
    /**
     * Create a new workflow rule.
     */
    createWorkflowRule(rule: Partial<WorkflowRule>): Promise<WorkflowRule>;
    /**
     * Update a workflow rule.
     */
    updateWorkflowRule(id: string, changes: Partial<WorkflowRule>): Promise<WorkflowRule>;
    /**
     * Delete a workflow rule.
     */
    deleteWorkflowRule(id: string): Promise<void>;
    /**
     * Get all enabled workflow rules that match a target state.
     * Used when a ticket transitions to a new state.
     */
    getWorkflowRulesForState(toState: string): Promise<WorkflowRule[]>;
    private rowToRule;
}
