/**
 * Table 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 { TableWithRelations, TableSelect, TableFilter, TableOrderBy, CreateTableInput, TablePatch } from '../input-types';
export declare class TableModel {
    private client;
    constructor(client: OrmClient);
    findMany<S extends TableSelect>(args: FindManyArgs<S, TableFilter, TableOrderBy> & {
        select: S;
    } & StrictSelect<S, TableSelect>): QueryBuilder<{
        tables: ConnectionResult<InferSelectResult<TableWithRelations, S>>;
    }>;
    findFirst<S extends TableSelect>(args: FindFirstArgs<S, TableFilter> & {
        select: S;
    } & StrictSelect<S, TableSelect>): QueryBuilder<{
        tables: {
            nodes: InferSelectResult<TableWithRelations, S>[];
        };
    }>;
    findOne<S extends TableSelect>(args: {
        id: string;
        select: S;
    } & StrictSelect<S, TableSelect>): QueryBuilder<{
        table: InferSelectResult<TableWithRelations, S> | null;
    }>;
    create<S extends TableSelect>(args: CreateArgs<S, CreateTableInput['table']> & {
        select: S;
    } & StrictSelect<S, TableSelect>): QueryBuilder<{
        createTable: {
            table: InferSelectResult<TableWithRelations, S>;
        };
    }>;
    update<S extends TableSelect>(args: UpdateArgs<S, {
        id: string;
    }, TablePatch> & {
        select: S;
    } & StrictSelect<S, TableSelect>): QueryBuilder<{
        updateTable: {
            table: InferSelectResult<TableWithRelations, S>;
        };
    }>;
    delete<S extends TableSelect>(args: DeleteArgs<{
        id: string;
    }, S> & {
        select: S;
    } & StrictSelect<S, TableSelect>): QueryBuilder<{
        deleteTable: {
            table: InferSelectResult<TableWithRelations, S>;
        };
    }>;
}
