import type { DoctorRule } from "../types";
interface SchemaEntity {
    name: string;
    fields: {
        [fieldName: string]: {
            type: string;
            required?: boolean;
        };
    };
}
/**
 * Extract field accesses from TypeScript code that are specifically
 * within InstantDB query/transaction contexts.
 *
 * Only checks:
 * 1. db.useQuery({ entityName: { fieldName: {} } }) — query objects
 * 2. tx.entityName.update({ fieldName: value }) — transaction mutations
 * 3. Direct entity field reads: entityVar.fieldName where entityVar is
 *    destructured from a query result (conservative heuristic)
 */
export declare function extractFieldAccesses(content: string, schemaEntities: Map<string, SchemaEntity>): Array<{
    entity: string;
    field: string;
    line: number;
    match: string;
}>;
export declare const instantdbRules: DoctorRule[];
export {};
//# sourceMappingURL=instantdb-rules.d.ts.map