/**
 * Ref model for ORM client
 * @generated by @constructive-io/graphql-codegen
 * DO NOT EDIT - changes will be overwritten
 */
import { OrmClient } from '../client';
import { QueryBuilder } from '../query-builder';
import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
import type { RefWithRelations, RefSelect, RefFilter, RefOrderBy, CreateRefInput, RefPatch } from '../input-types';
export declare class RefModel {
    private client;
    constructor(client: OrmClient);
    findMany<S extends RefSelect>(args: FindManyArgs<S, RefFilter, RefOrderBy> & {
        select: S;
    } & StrictSelect<S, RefSelect>): QueryBuilder<{
        refs: ConnectionResult<InferSelectResult<RefWithRelations, S>>;
    }>;
    findFirst<S extends RefSelect>(args: FindFirstArgs<S, RefFilter, RefOrderBy> & {
        select: S;
    } & StrictSelect<S, RefSelect>): QueryBuilder<{
        ref: InferSelectResult<RefWithRelations, S> | null;
    }>;
    findOne<S extends RefSelect>(args: {
        id: string;
        select: S;
    } & StrictSelect<S, RefSelect>): QueryBuilder<{
        ref: InferSelectResult<RefWithRelations, S> | null;
    }>;
    create<S extends RefSelect>(args: CreateArgs<S, CreateRefInput['ref']> & {
        select: S;
    } & StrictSelect<S, RefSelect>): QueryBuilder<{
        createRef: {
            ref: InferSelectResult<RefWithRelations, S>;
        };
    }>;
    update<S extends RefSelect>(args: UpdateArgs<S, {
        id: string;
    }, RefPatch> & {
        select: S;
    } & StrictSelect<S, RefSelect>): QueryBuilder<{
        updateRef: {
            ref: InferSelectResult<RefWithRelations, S>;
        };
    }>;
    delete<S extends RefSelect>(args: DeleteArgs<{
        id: string;
    }, S> & {
        select: S;
    } & StrictSelect<S, RefSelect>): QueryBuilder<{
        deleteRef: {
            ref: InferSelectResult<RefWithRelations, S>;
        };
    }>;
}
