/**
 * Database 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 { DatabaseWithRelations, DatabaseSelect, DatabaseFilter, DatabaseOrderBy, CreateDatabaseInput, DatabasePatch } from '../input-types';
export declare class DatabaseModel {
    private client;
    constructor(client: OrmClient);
    findMany<S extends DatabaseSelect>(args: FindManyArgs<S, DatabaseFilter, DatabaseOrderBy> & {
        select: S;
    } & StrictSelect<S, DatabaseSelect>): QueryBuilder<{
        databases: ConnectionResult<InferSelectResult<DatabaseWithRelations, S>>;
    }>;
    findFirst<S extends DatabaseSelect>(args: FindFirstArgs<S, DatabaseFilter> & {
        select: S;
    } & StrictSelect<S, DatabaseSelect>): QueryBuilder<{
        databases: {
            nodes: InferSelectResult<DatabaseWithRelations, S>[];
        };
    }>;
    findOne<S extends DatabaseSelect>(args: {
        id: string;
        select: S;
    } & StrictSelect<S, DatabaseSelect>): QueryBuilder<{
        database: InferSelectResult<DatabaseWithRelations, S> | null;
    }>;
    create<S extends DatabaseSelect>(args: CreateArgs<S, CreateDatabaseInput['database']> & {
        select: S;
    } & StrictSelect<S, DatabaseSelect>): QueryBuilder<{
        createDatabase: {
            database: InferSelectResult<DatabaseWithRelations, S>;
        };
    }>;
    update<S extends DatabaseSelect>(args: UpdateArgs<S, {
        id: string;
    }, DatabasePatch> & {
        select: S;
    } & StrictSelect<S, DatabaseSelect>): QueryBuilder<{
        updateDatabase: {
            database: InferSelectResult<DatabaseWithRelations, S>;
        };
    }>;
    delete<S extends DatabaseSelect>(args: DeleteArgs<{
        id: string;
    }, S> & {
        select: S;
    } & StrictSelect<S, DatabaseSelect>): QueryBuilder<{
        deleteDatabase: {
            database: InferSelectResult<DatabaseWithRelations, S>;
        };
    }>;
}
