/**
 * Enforce Schema
 *
 * Database schema for decisions, constraints, and fluid governance workflow.
 * Aligned with @vorion/contracts Decision and FluidDecision types.
 *
 * @packageDocumentation
 */
/**
 * Decision tier for fluid governance (GREEN/YELLOW/RED)
 */
export declare const decisionTierEnum: import("drizzle-orm/pg-core").PgEnum<["GREEN", "YELLOW", "RED"]>;
/**
 * Workflow state for intent lifecycle
 */
export declare const workflowStateEnum: import("drizzle-orm/pg-core").PgEnum<["SUBMITTED", "EVALUATING", "APPROVED", "PENDING_REFINEMENT", "PENDING_REVIEW", "DENIED", "EXECUTING", "COMPLETED", "FAILED", "CANCELLED", "EXPIRED"]>;
/**
 * Refinement action types
 */
export declare const refinementActionEnum: import("drizzle-orm/pg-core").PgEnum<["REDUCE_SCOPE", "ADD_CONSTRAINTS", "REQUEST_APPROVAL", "PROVIDE_CONTEXT", "DECOMPOSE", "WAIT_FOR_TRUST"]>;
/**
 * Approval type enum
 */
export declare const approvalTypeEnum: import("drizzle-orm/pg-core").PgEnum<["none", "human_review", "automated_check", "multi_party"]>;
/**
 * Trust band enum (T0-T7)
 */
export declare const trustBandEnum: import("drizzle-orm/pg-core").PgEnum<["T0_SANDBOX", "T1_OBSERVED", "T2_PROVISIONAL", "T3_MONITORED", "T4_STANDARD", "T5_TRUSTED", "T6_CERTIFIED", "T7_AUTONOMOUS"]>;
/**
 * Denial reason enum
 */
export declare const denialReasonEnum: import("drizzle-orm/pg-core").PgEnum<["insufficient_trust", "policy_violation", "resource_restricted", "data_sensitivity_exceeded", "rate_limit_exceeded", "context_mismatch", "expired_intent", "system_error"]>;
/**
 * Decisions table - stores authorization decisions for intents
 */
export declare const decisions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "decisions";
    schema: undefined;
    columns: {
        id: import("drizzle-orm/pg-core").PgColumn<{
            name: "id";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: true;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        tenantId: import("drizzle-orm/pg-core").PgColumn<{
            name: "tenant_id";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgText";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        intentId: import("drizzle-orm/pg-core").PgColumn<{
            name: "intent_id";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        agentId: import("drizzle-orm/pg-core").PgColumn<{
            name: "agent_id";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        correlationId: import("drizzle-orm/pg-core").PgColumn<{
            name: "correlation_id";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        permitted: import("drizzle-orm/pg-core").PgColumn<{
            name: "permitted";
            tableName: "decisions";
            dataType: "boolean";
            columnType: "PgBoolean";
            data: boolean;
            driverParam: boolean;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        tier: import("drizzle-orm/pg-core").PgColumn<{
            name: "tier";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgEnumColumn";
            data: "GREEN" | "YELLOW" | "RED";
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["GREEN", "YELLOW", "RED"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        trustBand: import("drizzle-orm/pg-core").PgColumn<{
            name: "trust_band";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgEnumColumn";
            data: "T0_SANDBOX" | "T1_OBSERVED" | "T2_PROVISIONAL" | "T3_MONITORED" | "T4_STANDARD" | "T5_TRUSTED" | "T6_CERTIFIED" | "T7_AUTONOMOUS";
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["T0_SANDBOX", "T1_OBSERVED", "T2_PROVISIONAL", "T3_MONITORED", "T4_STANDARD", "T5_TRUSTED", "T6_CERTIFIED", "T7_AUTONOMOUS"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        trustScore: import("drizzle-orm/pg-core").PgColumn<{
            name: "trust_score";
            tableName: "decisions";
            dataType: "number";
            columnType: "PgInteger";
            data: number;
            driverParam: string | number;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        policySetId: import("drizzle-orm/pg-core").PgColumn<{
            name: "policy_set_id";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgText";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        reasoning: import("drizzle-orm/pg-core").PgColumn<{
            name: "reasoning";
            tableName: "decisions";
            dataType: "json";
            columnType: "PgJsonb";
            data: string[];
            driverParam: unknown;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: string[];
        }>;
        denialReason: import("drizzle-orm/pg-core").PgColumn<{
            name: "denial_reason";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgEnumColumn";
            data: "policy_violation" | "insufficient_trust" | "resource_restricted" | "data_sensitivity_exceeded" | "rate_limit_exceeded" | "context_mismatch" | "expired_intent" | "system_error";
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["insufficient_trust", "policy_violation", "resource_restricted", "data_sensitivity_exceeded", "rate_limit_exceeded", "context_mismatch", "expired_intent", "system_error"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        hardDenial: import("drizzle-orm/pg-core").PgColumn<{
            name: "hard_denial";
            tableName: "decisions";
            dataType: "boolean";
            columnType: "PgBoolean";
            data: boolean;
            driverParam: boolean;
            notNull: false;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        violatedPolicies: import("drizzle-orm/pg-core").PgColumn<{
            name: "violated_policies";
            tableName: "decisions";
            dataType: "json";
            columnType: "PgJsonb";
            data: {
                policyId: string;
                policyName: string;
                severity: "warning" | "error" | "critical";
            }[];
            driverParam: unknown;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: {
                policyId: string;
                policyName: string;
                severity: "warning" | "error" | "critical";
            }[];
        }>;
        refinementDeadline: import("drizzle-orm/pg-core").PgColumn<{
            name: "refinement_deadline";
            tableName: "decisions";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        maxRefinementAttempts: import("drizzle-orm/pg-core").PgColumn<{
            name: "max_refinement_attempts";
            tableName: "decisions";
            dataType: "number";
            columnType: "PgInteger";
            data: number;
            driverParam: string | number;
            notNull: false;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        refinementAttempt: import("drizzle-orm/pg-core").PgColumn<{
            name: "refinement_attempt";
            tableName: "decisions";
            dataType: "number";
            columnType: "PgInteger";
            data: number;
            driverParam: string | number;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        originalDecisionId: import("drizzle-orm/pg-core").PgColumn<{
            name: "original_decision_id";
            tableName: "decisions";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        appliedRefinements: import("drizzle-orm/pg-core").PgColumn<{
            name: "applied_refinements";
            tableName: "decisions";
            dataType: "json";
            columnType: "PgJsonb";
            data: {
                refinementId: string;
                appliedAt: string;
            }[];
            driverParam: unknown;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: {
                refinementId: string;
                appliedAt: string;
            }[];
        }>;
        latencyMs: import("drizzle-orm/pg-core").PgColumn<{
            name: "latency_ms";
            tableName: "decisions";
            dataType: "number";
            columnType: "PgInteger";
            data: number;
            driverParam: string | number;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        version: import("drizzle-orm/pg-core").PgColumn<{
            name: "version";
            tableName: "decisions";
            dataType: "number";
            columnType: "PgInteger";
            data: number;
            driverParam: string | number;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        decidedAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "decided_at";
            tableName: "decisions";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        expiresAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "expires_at";
            tableName: "decisions";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        createdAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "created_at";
            tableName: "decisions";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
    };
    dialect: "pg";
}>;
/**
 * Decision constraints - constraints applied to permitted decisions
 */
export declare const decisionConstraints: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "decision_constraints";
    schema: undefined;
    columns: {
        id: import("drizzle-orm/pg-core").PgColumn<{
            name: "id";
            tableName: "decision_constraints";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: true;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        decisionId: import("drizzle-orm/pg-core").PgColumn<{
            name: "decision_id";
            tableName: "decision_constraints";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        tenantId: import("drizzle-orm/pg-core").PgColumn<{
            name: "tenant_id";
            tableName: "decision_constraints";
            dataType: "string";
            columnType: "PgText";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        allowedTools: import("drizzle-orm/pg-core").PgColumn<{
            name: "allowed_tools";
            tableName: "decision_constraints";
            dataType: "json";
            columnType: "PgJsonb";
            data: string[];
            driverParam: unknown;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: string[];
        }>;
        dataScopes: import("drizzle-orm/pg-core").PgColumn<{
            name: "data_scopes";
            tableName: "decision_constraints";
            dataType: "json";
            columnType: "PgJsonb";
            data: string[];
            driverParam: unknown;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: string[];
        }>;
        rateLimits: import("drizzle-orm/pg-core").PgColumn<{
            name: "rate_limits";
            tableName: "decision_constraints";
            dataType: "json";
            columnType: "PgJsonb";
            data: {
                resource: string;
                limit: number;
                windowSeconds: number;
            }[];
            driverParam: unknown;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: {
                resource: string;
                limit: number;
                windowSeconds: number;
            }[];
        }>;
        requiredApprovals: import("drizzle-orm/pg-core").PgColumn<{
            name: "required_approvals";
            tableName: "decision_constraints";
            dataType: "json";
            columnType: "PgJsonb";
            data: {
                type: string;
                approver: string;
                timeoutMs?: number;
                reason: string;
            }[];
            driverParam: unknown;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: {
                type: string;
                approver: string;
                timeoutMs?: number;
                reason: string;
            }[];
        }>;
        reversibilityRequired: import("drizzle-orm/pg-core").PgColumn<{
            name: "reversibility_required";
            tableName: "decision_constraints";
            dataType: "boolean";
            columnType: "PgBoolean";
            data: boolean;
            driverParam: boolean;
            notNull: false;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        maxExecutionTimeMs: import("drizzle-orm/pg-core").PgColumn<{
            name: "max_execution_time_ms";
            tableName: "decision_constraints";
            dataType: "number";
            columnType: "PgInteger";
            data: number;
            driverParam: string | number;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        maxRetries: import("drizzle-orm/pg-core").PgColumn<{
            name: "max_retries";
            tableName: "decision_constraints";
            dataType: "number";
            columnType: "PgInteger";
            data: number;
            driverParam: string | number;
            notNull: false;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        resourceQuotas: import("drizzle-orm/pg-core").PgColumn<{
            name: "resource_quotas";
            tableName: "decision_constraints";
            dataType: "json";
            columnType: "PgJsonb";
            data: Record<string, number>;
            driverParam: unknown;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: Record<string, number>;
        }>;
        createdAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "created_at";
            tableName: "decision_constraints";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
    };
    dialect: "pg";
}>;
/**
 * Refinement options - available refinements for YELLOW decisions
 */
export declare const refinementOptions: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "refinement_options";
    schema: undefined;
    columns: {
        id: import("drizzle-orm/pg-core").PgColumn<{
            name: "id";
            tableName: "refinement_options";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: true;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        decisionId: import("drizzle-orm/pg-core").PgColumn<{
            name: "decision_id";
            tableName: "refinement_options";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        tenantId: import("drizzle-orm/pg-core").PgColumn<{
            name: "tenant_id";
            tableName: "refinement_options";
            dataType: "string";
            columnType: "PgText";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        action: import("drizzle-orm/pg-core").PgColumn<{
            name: "action";
            tableName: "refinement_options";
            dataType: "string";
            columnType: "PgEnumColumn";
            data: "REDUCE_SCOPE" | "ADD_CONSTRAINTS" | "REQUEST_APPROVAL" | "PROVIDE_CONTEXT" | "DECOMPOSE" | "WAIT_FOR_TRUST";
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["REDUCE_SCOPE", "ADD_CONSTRAINTS", "REQUEST_APPROVAL", "PROVIDE_CONTEXT", "DECOMPOSE", "WAIT_FOR_TRUST"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        description: import("drizzle-orm/pg-core").PgColumn<{
            name: "description";
            tableName: "refinement_options";
            dataType: "string";
            columnType: "PgText";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        successProbability: import("drizzle-orm/pg-core").PgColumn<{
            name: "success_probability";
            tableName: "refinement_options";
            dataType: "number";
            columnType: "PgReal";
            data: number;
            driverParam: string | number;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        effort: import("drizzle-orm/pg-core").PgColumn<{
            name: "effort";
            tableName: "refinement_options";
            dataType: "string";
            columnType: "PgText";
            data: "low" | "medium" | "high";
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: "low" | "medium" | "high";
        }>;
        parameters: import("drizzle-orm/pg-core").PgColumn<{
            name: "parameters";
            tableName: "refinement_options";
            dataType: "json";
            columnType: "PgJsonb";
            data: Record<string, unknown>;
            driverParam: unknown;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: Record<string, unknown>;
        }>;
        resultingConstraints: import("drizzle-orm/pg-core").PgColumn<{
            name: "resulting_constraints";
            tableName: "refinement_options";
            dataType: "json";
            columnType: "PgJsonb";
            data: Record<string, unknown>;
            driverParam: unknown;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: Record<string, unknown>;
        }>;
        selected: import("drizzle-orm/pg-core").PgColumn<{
            name: "selected";
            tableName: "refinement_options";
            dataType: "boolean";
            columnType: "PgBoolean";
            data: boolean;
            driverParam: boolean;
            notNull: false;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        appliedAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "applied_at";
            tableName: "refinement_options";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        createdAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "created_at";
            tableName: "refinement_options";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
    };
    dialect: "pg";
}>;
/**
 * Workflow instances - tracks intent lifecycle through governance
 */
export declare const workflowInstances: import("drizzle-orm/pg-core").PgTableWithColumns<{
    name: "workflow_instances";
    schema: undefined;
    columns: {
        id: import("drizzle-orm/pg-core").PgColumn<{
            name: "id";
            tableName: "workflow_instances";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: true;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        tenantId: import("drizzle-orm/pg-core").PgColumn<{
            name: "tenant_id";
            tableName: "workflow_instances";
            dataType: "string";
            columnType: "PgText";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: [string, ...string[]];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        intentId: import("drizzle-orm/pg-core").PgColumn<{
            name: "intent_id";
            tableName: "workflow_instances";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        agentId: import("drizzle-orm/pg-core").PgColumn<{
            name: "agent_id";
            tableName: "workflow_instances";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        correlationId: import("drizzle-orm/pg-core").PgColumn<{
            name: "correlation_id";
            tableName: "workflow_instances";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        state: import("drizzle-orm/pg-core").PgColumn<{
            name: "state";
            tableName: "workflow_instances";
            dataType: "string";
            columnType: "PgEnumColumn";
            data: "SUBMITTED" | "EVALUATING" | "APPROVED" | "PENDING_REFINEMENT" | "PENDING_REVIEW" | "DENIED" | "EXECUTING" | "COMPLETED" | "FAILED" | "CANCELLED" | "EXPIRED";
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: ["SUBMITTED", "EVALUATING", "APPROVED", "PENDING_REFINEMENT", "PENDING_REVIEW", "DENIED", "EXECUTING", "COMPLETED", "FAILED", "CANCELLED", "EXPIRED"];
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        currentDecisionId: import("drizzle-orm/pg-core").PgColumn<{
            name: "current_decision_id";
            tableName: "workflow_instances";
            dataType: "string";
            columnType: "PgUUID";
            data: string;
            driverParam: string;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        stateHistory: import("drizzle-orm/pg-core").PgColumn<{
            name: "state_history";
            tableName: "workflow_instances";
            dataType: "json";
            columnType: "PgJsonb";
            data: {
                from: string;
                to: string;
                reason: string;
                timestamp: string;
            }[];
            driverParam: unknown;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: {
                from: string;
                to: string;
                reason: string;
                timestamp: string;
            }[];
        }>;
        execution: import("drizzle-orm/pg-core").PgColumn<{
            name: "execution";
            tableName: "workflow_instances";
            dataType: "json";
            columnType: "PgJsonb";
            data: {
                executionId: string;
                startedAt: string;
                completedAt?: string;
                status: "running" | "completed" | "failed";
                result?: unknown;
                error?: string;
            };
            driverParam: unknown;
            notNull: false;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {
            $type: {
                executionId: string;
                startedAt: string;
                completedAt?: string;
                status: "running" | "completed" | "failed";
                result?: unknown;
                error?: string;
            };
        }>;
        createdAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "created_at";
            tableName: "workflow_instances";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        updatedAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "updated_at";
            tableName: "workflow_instances";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: true;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
        expiresAt: import("drizzle-orm/pg-core").PgColumn<{
            name: "expires_at";
            tableName: "workflow_instances";
            dataType: "date";
            columnType: "PgTimestamp";
            data: Date;
            driverParam: string;
            notNull: true;
            hasDefault: false;
            isPrimaryKey: false;
            isAutoincrement: false;
            hasRuntimeDefault: false;
            enumValues: undefined;
            baseColumn: never;
            identity: undefined;
            generated: undefined;
        }, {}, {}>;
    };
    dialect: "pg";
}>;
export declare const decisionsRelations: import("drizzle-orm").Relations<"decisions", {
    constraints: import("drizzle-orm").One<"decision_constraints", true>;
    refinementOptions: import("drizzle-orm").Many<"refinement_options">;
    originalDecision: import("drizzle-orm").One<"decisions", false>;
    refinedDecisions: import("drizzle-orm").Many<"decisions">;
}>;
export declare const decisionConstraintsRelations: import("drizzle-orm").Relations<"decision_constraints", {
    decision: import("drizzle-orm").One<"decisions", true>;
}>;
export declare const refinementOptionsRelations: import("drizzle-orm").Relations<"refinement_options", {
    decision: import("drizzle-orm").One<"decisions", true>;
}>;
export declare const workflowInstancesRelations: import("drizzle-orm").Relations<"workflow_instances", {
    currentDecision: import("drizzle-orm").One<"decisions", false>;
}>;
export type DecisionRow = typeof decisions.$inferSelect;
export type NewDecisionRow = typeof decisions.$inferInsert;
export type DecisionConstraintsRow = typeof decisionConstraints.$inferSelect;
export type NewDecisionConstraintsRow = typeof decisionConstraints.$inferInsert;
export type RefinementOptionRow = typeof refinementOptions.$inferSelect;
export type NewRefinementOptionRow = typeof refinementOptions.$inferInsert;
export type WorkflowInstanceRow = typeof workflowInstances.$inferSelect;
export type NewWorkflowInstanceRow = typeof workflowInstances.$inferInsert;
//# sourceMappingURL=schema.d.ts.map