import type * as runtime from "@prisma/client/runtime/client";
import type * as Prisma from "../internal/prismaNamespace";
/**
 * Model states_countries
 * This model contains row level security and requires additional setup for migrations. Visit https://pris.ly/d/row-level-security for more info.
 */
export type states_countriesModel = runtime.Types.Result.DefaultSelection<Prisma.$states_countriesPayload>;
export type AggregateStates_countries = {
    _count: States_countriesCountAggregateOutputType | null;
    _avg: States_countriesAvgAggregateOutputType | null;
    _sum: States_countriesSumAggregateOutputType | null;
    _min: States_countriesMinAggregateOutputType | null;
    _max: States_countriesMaxAggregateOutputType | null;
};
export type States_countriesAvgAggregateOutputType = {
    id: number | null;
    countries_id: number | null;
};
export type States_countriesSumAggregateOutputType = {
    id: number | null;
    countries_id: number | null;
};
export type States_countriesMinAggregateOutputType = {
    id: number | null;
    countries_id: number | null;
};
export type States_countriesMaxAggregateOutputType = {
    id: number | null;
    countries_id: number | null;
};
export type States_countriesCountAggregateOutputType = {
    id: number;
    countries_id: number;
    _all: number;
};
export type States_countriesAvgAggregateInputType = {
    id?: true;
    countries_id?: true;
};
export type States_countriesSumAggregateInputType = {
    id?: true;
    countries_id?: true;
};
export type States_countriesMinAggregateInputType = {
    id?: true;
    countries_id?: true;
};
export type States_countriesMaxAggregateInputType = {
    id?: true;
    countries_id?: true;
};
export type States_countriesCountAggregateInputType = {
    id?: true;
    countries_id?: true;
    _all?: true;
};
export type States_countriesAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which states_countries to aggregate.
     */
    where?: Prisma.states_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of states_countries to fetch.
     */
    orderBy?: Prisma.states_countriesOrderByWithRelationInput | Prisma.states_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the start position
     */
    cursor?: Prisma.states_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` states_countries from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` states_countries.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Count returned states_countries
    **/
    _count?: true | States_countriesCountAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to average
    **/
    _avg?: States_countriesAvgAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to sum
    **/
    _sum?: States_countriesSumAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the minimum value
    **/
    _min?: States_countriesMinAggregateInputType;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
     *
     * Select which fields to find the maximum value
    **/
    _max?: States_countriesMaxAggregateInputType;
};
export type GetStates_countriesAggregateType<T extends States_countriesAggregateArgs> = {
    [P in keyof T & keyof AggregateStates_countries]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateStates_countries[P]> : Prisma.GetScalarType<T[P], AggregateStates_countries[P]>;
};
export type states_countriesGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    where?: Prisma.states_countriesWhereInput;
    orderBy?: Prisma.states_countriesOrderByWithAggregationInput | Prisma.states_countriesOrderByWithAggregationInput[];
    by: Prisma.States_countriesScalarFieldEnum[] | Prisma.States_countriesScalarFieldEnum;
    having?: Prisma.states_countriesScalarWhereWithAggregatesInput;
    take?: number;
    skip?: number;
    _count?: States_countriesCountAggregateInputType | true;
    _avg?: States_countriesAvgAggregateInputType;
    _sum?: States_countriesSumAggregateInputType;
    _min?: States_countriesMinAggregateInputType;
    _max?: States_countriesMaxAggregateInputType;
};
export type States_countriesGroupByOutputType = {
    id: number;
    countries_id: number | null;
    _count: States_countriesCountAggregateOutputType | null;
    _avg: States_countriesAvgAggregateOutputType | null;
    _sum: States_countriesSumAggregateOutputType | null;
    _min: States_countriesMinAggregateOutputType | null;
    _max: States_countriesMaxAggregateOutputType | null;
};
type GetStates_countriesGroupByPayload<T extends states_countriesGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<States_countriesGroupByOutputType, T['by']> & {
    [P in ((keyof T) & (keyof States_countriesGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], States_countriesGroupByOutputType[P]> : Prisma.GetScalarType<T[P], States_countriesGroupByOutputType[P]>;
}>>;
export type states_countriesWhereInput = {
    AND?: Prisma.states_countriesWhereInput | Prisma.states_countriesWhereInput[];
    OR?: Prisma.states_countriesWhereInput[];
    NOT?: Prisma.states_countriesWhereInput | Prisma.states_countriesWhereInput[];
    id?: Prisma.IntFilter<"states_countries"> | number;
    countries_id?: Prisma.IntNullableFilter<"states_countries"> | number | null;
};
export type states_countriesOrderByWithRelationInput = {
    id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrderInput | Prisma.SortOrder;
};
export type states_countriesWhereUniqueInput = Prisma.AtLeast<{
    id?: number;
    AND?: Prisma.states_countriesWhereInput | Prisma.states_countriesWhereInput[];
    OR?: Prisma.states_countriesWhereInput[];
    NOT?: Prisma.states_countriesWhereInput | Prisma.states_countriesWhereInput[];
    countries_id?: Prisma.IntNullableFilter<"states_countries"> | number | null;
}, "id">;
export type states_countriesOrderByWithAggregationInput = {
    id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrderInput | Prisma.SortOrder;
    _count?: Prisma.states_countriesCountOrderByAggregateInput;
    _avg?: Prisma.states_countriesAvgOrderByAggregateInput;
    _max?: Prisma.states_countriesMaxOrderByAggregateInput;
    _min?: Prisma.states_countriesMinOrderByAggregateInput;
    _sum?: Prisma.states_countriesSumOrderByAggregateInput;
};
export type states_countriesScalarWhereWithAggregatesInput = {
    AND?: Prisma.states_countriesScalarWhereWithAggregatesInput | Prisma.states_countriesScalarWhereWithAggregatesInput[];
    OR?: Prisma.states_countriesScalarWhereWithAggregatesInput[];
    NOT?: Prisma.states_countriesScalarWhereWithAggregatesInput | Prisma.states_countriesScalarWhereWithAggregatesInput[];
    id?: Prisma.IntWithAggregatesFilter<"states_countries"> | number;
    countries_id?: Prisma.IntNullableWithAggregatesFilter<"states_countries"> | number | null;
};
export type states_countriesCreateInput = {
    countries_id?: number | null;
};
export type states_countriesUncheckedCreateInput = {
    id?: number;
    countries_id?: number | null;
};
export type states_countriesUpdateInput = {
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type states_countriesUncheckedUpdateInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type states_countriesCreateManyInput = {
    id?: number;
    countries_id?: number | null;
};
export type states_countriesUpdateManyMutationInput = {
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type states_countriesUncheckedUpdateManyInput = {
    id?: Prisma.IntFieldUpdateOperationsInput | number;
    countries_id?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type states_countriesCountOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type states_countriesAvgOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type states_countriesMaxOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type states_countriesMinOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type states_countriesSumOrderByAggregateInput = {
    id?: Prisma.SortOrder;
    countries_id?: Prisma.SortOrder;
};
export type states_countriesSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    countries_id?: boolean;
}, ExtArgs["result"]["states_countries"]>;
export type states_countriesSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    countries_id?: boolean;
}, ExtArgs["result"]["states_countries"]>;
export type states_countriesSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
    id?: boolean;
    countries_id?: boolean;
}, ExtArgs["result"]["states_countries"]>;
export type states_countriesSelectScalar = {
    id?: boolean;
    countries_id?: boolean;
};
export type states_countriesOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "countries_id", ExtArgs["result"]["states_countries"]>;
export type $states_countriesPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    name: "states_countries";
    objects: {};
    scalars: runtime.Types.Extensions.GetPayloadResult<{
        id: number;
        countries_id: number | null;
    }, ExtArgs["result"]["states_countries"]>;
    composites: {};
};
export type states_countriesGetPayload<S extends boolean | null | undefined | states_countriesDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$states_countriesPayload, S>;
export type states_countriesCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<states_countriesFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
    select?: States_countriesCountAggregateInputType | true;
};
export interface states_countriesDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
    [K: symbol]: {
        types: Prisma.TypeMap<ExtArgs>['model']['states_countries'];
        meta: {
            name: 'states_countries';
        };
    };
    /**
     * Find zero or one States_countries that matches the filter.
     * @param {states_countriesFindUniqueArgs} args - Arguments to find a States_countries
     * @example
     * // Get one States_countries
     * const states_countries = await prisma.states_countries.findUnique({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUnique<T extends states_countriesFindUniqueArgs>(args: Prisma.SelectSubset<T, states_countriesFindUniqueArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find one States_countries that matches the filter or throw an error with `error.code='P2025'`
     * if no matches were found.
     * @param {states_countriesFindUniqueOrThrowArgs} args - Arguments to find a States_countries
     * @example
     * // Get one States_countries
     * const states_countries = await prisma.states_countries.findUniqueOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findUniqueOrThrow<T extends states_countriesFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, states_countriesFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first States_countries that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {states_countriesFindFirstArgs} args - Arguments to find a States_countries
     * @example
     * // Get one States_countries
     * const states_countries = await prisma.states_countries.findFirst({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirst<T extends states_countriesFindFirstArgs>(args?: Prisma.SelectSubset<T, states_countriesFindFirstArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
    /**
     * Find the first States_countries that matches the filter or
     * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {states_countriesFindFirstOrThrowArgs} args - Arguments to find a States_countries
     * @example
     * // Get one States_countries
     * const states_countries = await prisma.states_countries.findFirstOrThrow({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     */
    findFirstOrThrow<T extends states_countriesFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, states_countriesFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Find zero or more States_countries that matches the filter.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {states_countriesFindManyArgs} args - Arguments to filter and select certain fields only.
     * @example
     * // Get all States_countries
     * const states_countries = await prisma.states_countries.findMany()
     *
     * // Get first 10 States_countries
     * const states_countries = await prisma.states_countries.findMany({ take: 10 })
     *
     * // Only select the `id`
     * const states_countriesWithIdOnly = await prisma.states_countries.findMany({ select: { id: true } })
     *
     */
    findMany<T extends states_countriesFindManyArgs>(args?: Prisma.SelectSubset<T, states_countriesFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
    /**
     * Create a States_countries.
     * @param {states_countriesCreateArgs} args - Arguments to create a States_countries.
     * @example
     * // Create one States_countries
     * const States_countries = await prisma.states_countries.create({
     *   data: {
     *     // ... data to create a States_countries
     *   }
     * })
     *
     */
    create<T extends states_countriesCreateArgs>(args: Prisma.SelectSubset<T, states_countriesCreateArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Create many States_countries.
     * @param {states_countriesCreateManyArgs} args - Arguments to create many States_countries.
     * @example
     * // Create many States_countries
     * const states_countries = await prisma.states_countries.createMany({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     */
    createMany<T extends states_countriesCreateManyArgs>(args?: Prisma.SelectSubset<T, states_countriesCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Create many States_countries and returns the data saved in the database.
     * @param {states_countriesCreateManyAndReturnArgs} args - Arguments to create many States_countries.
     * @example
     * // Create many States_countries
     * const states_countries = await prisma.states_countries.createManyAndReturn({
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Create many States_countries and only return the `id`
     * const states_countriesWithIdOnly = await prisma.states_countries.createManyAndReturn({
     *   select: { id: true },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    createManyAndReturn<T extends states_countriesCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, states_countriesCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
    /**
     * Delete a States_countries.
     * @param {states_countriesDeleteArgs} args - Arguments to delete one States_countries.
     * @example
     * // Delete one States_countries
     * const States_countries = await prisma.states_countries.delete({
     *   where: {
     *     // ... filter to delete one States_countries
     *   }
     * })
     *
     */
    delete<T extends states_countriesDeleteArgs>(args: Prisma.SelectSubset<T, states_countriesDeleteArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Update one States_countries.
     * @param {states_countriesUpdateArgs} args - Arguments to update one States_countries.
     * @example
     * // Update one States_countries
     * const states_countries = await prisma.states_countries.update({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    update<T extends states_countriesUpdateArgs>(args: Prisma.SelectSubset<T, states_countriesUpdateArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Delete zero or more States_countries.
     * @param {states_countriesDeleteManyArgs} args - Arguments to filter States_countries to delete.
     * @example
     * // Delete a few States_countries
     * const { count } = await prisma.states_countries.deleteMany({
     *   where: {
     *     // ... provide filter here
     *   }
     * })
     *
     */
    deleteMany<T extends states_countriesDeleteManyArgs>(args?: Prisma.SelectSubset<T, states_countriesDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more States_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {states_countriesUpdateManyArgs} args - Arguments to update one or more rows.
     * @example
     * // Update many States_countries
     * const states_countries = await prisma.states_countries.updateMany({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: {
     *     // ... provide data here
     *   }
     * })
     *
     */
    updateMany<T extends states_countriesUpdateManyArgs>(args: Prisma.SelectSubset<T, states_countriesUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
    /**
     * Update zero or more States_countries and returns the data updated in the database.
     * @param {states_countriesUpdateManyAndReturnArgs} args - Arguments to update many States_countries.
     * @example
     * // Update many States_countries
     * const states_countries = await prisma.states_countries.updateManyAndReturn({
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     *
     * // Update zero or more States_countries and only return the `id`
     * const states_countriesWithIdOnly = await prisma.states_countries.updateManyAndReturn({
     *   select: { id: true },
     *   where: {
     *     // ... provide filter here
     *   },
     *   data: [
     *     // ... provide data here
     *   ]
     * })
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     *
     */
    updateManyAndReturn<T extends states_countriesUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, states_countriesUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
    /**
     * Create or update one States_countries.
     * @param {states_countriesUpsertArgs} args - Arguments to update or create a States_countries.
     * @example
     * // Update or create a States_countries
     * const states_countries = await prisma.states_countries.upsert({
     *   create: {
     *     // ... data to create a States_countries
     *   },
     *   update: {
     *     // ... in case it already exists, update
     *   },
     *   where: {
     *     // ... the filter for the States_countries we want to update
     *   }
     * })
     */
    upsert<T extends states_countriesUpsertArgs>(args: Prisma.SelectSubset<T, states_countriesUpsertArgs<ExtArgs>>): Prisma.Prisma__states_countriesClient<runtime.Types.Result.GetResult<Prisma.$states_countriesPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
    /**
     * Count the number of States_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {states_countriesCountArgs} args - Arguments to filter States_countries to count.
     * @example
     * // Count the number of States_countries
     * const count = await prisma.states_countries.count({
     *   where: {
     *     // ... the filter for the States_countries we want to count
     *   }
     * })
    **/
    count<T extends states_countriesCountArgs>(args?: Prisma.Subset<T, states_countriesCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], States_countriesCountAggregateOutputType> : number>;
    /**
     * Allows you to perform aggregations operations on a States_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {States_countriesAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
     * @example
     * // Ordered by age ascending
     * // Where email contains prisma.io
     * // Limited to the 10 users
     * const aggregations = await prisma.user.aggregate({
     *   _avg: {
     *     age: true,
     *   },
     *   where: {
     *     email: {
     *       contains: "prisma.io",
     *     },
     *   },
     *   orderBy: {
     *     age: "asc",
     *   },
     *   take: 10,
     * })
    **/
    aggregate<T extends States_countriesAggregateArgs>(args: Prisma.Subset<T, States_countriesAggregateArgs>): Prisma.PrismaPromise<GetStates_countriesAggregateType<T>>;
    /**
     * Group by States_countries.
     * Note, that providing `undefined` is treated as the value not being there.
     * Read more here: https://pris.ly/d/null-undefined
     * @param {states_countriesGroupByArgs} args - Group by arguments.
     * @example
     * // Group by city, order by createdAt, get count
     * const result = await prisma.user.groupBy({
     *   by: ['city', 'createdAt'],
     *   orderBy: {
     *     createdAt: true
     *   },
     *   _count: {
     *     _all: true
     *   },
     * })
     *
    **/
    groupBy<T extends states_countriesGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
        orderBy: states_countriesGroupByArgs['orderBy'];
    } : {
        orderBy?: states_countriesGroupByArgs['orderBy'];
    }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
        [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
            Error,
            'Field ',
            P,
            ` in "having" needs to be provided in "by"`
        ];
    }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
        [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
    }[OrderFields]>(args: Prisma.SubsetIntersection<T, states_countriesGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetStates_countriesGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
    /**
     * Fields of the states_countries model
     */
    readonly fields: states_countriesFieldRefs;
}
/**
 * The delegate class that acts as a "Promise-like" for states_countries.
 * Why is this prefixed with `Prisma__`?
 * Because we want to prevent naming conflicts as mentioned in
 * https://github.com/prisma/prisma-client-js/issues/707
 */
export interface Prisma__states_countriesClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
    readonly [Symbol.toStringTag]: "PrismaPromise";
    /**
     * Attaches callbacks for the resolution and/or rejection of the Promise.
     * @param onfulfilled The callback to execute when the Promise is resolved.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of which ever callback is executed.
     */
    then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
    /**
     * Attaches a callback for only the rejection of the Promise.
     * @param onrejected The callback to execute when the Promise is rejected.
     * @returns A Promise for the completion of the callback.
     */
    catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
    /**
     * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
     * resolved value cannot be modified from the callback.
     * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
     * @returns A Promise for the completion of the callback.
     */
    finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
}
/**
 * Fields of the states_countries model
 */
export interface states_countriesFieldRefs {
    readonly id: Prisma.FieldRef<"states_countries", 'Int'>;
    readonly countries_id: Prisma.FieldRef<"states_countries", 'Int'>;
}
/**
 * states_countries findUnique
 */
export type states_countriesFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * Filter, which states_countries to fetch.
     */
    where: Prisma.states_countriesWhereUniqueInput;
};
/**
 * states_countries findUniqueOrThrow
 */
export type states_countriesFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * Filter, which states_countries to fetch.
     */
    where: Prisma.states_countriesWhereUniqueInput;
};
/**
 * states_countries findFirst
 */
export type states_countriesFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * Filter, which states_countries to fetch.
     */
    where?: Prisma.states_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of states_countries to fetch.
     */
    orderBy?: Prisma.states_countriesOrderByWithRelationInput | Prisma.states_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for states_countries.
     */
    cursor?: Prisma.states_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` states_countries from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` states_countries.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of states_countries.
     */
    distinct?: Prisma.States_countriesScalarFieldEnum | Prisma.States_countriesScalarFieldEnum[];
};
/**
 * states_countries findFirstOrThrow
 */
export type states_countriesFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * Filter, which states_countries to fetch.
     */
    where?: Prisma.states_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of states_countries to fetch.
     */
    orderBy?: Prisma.states_countriesOrderByWithRelationInput | Prisma.states_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for searching for states_countries.
     */
    cursor?: Prisma.states_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` states_countries from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` states_countries.
     */
    skip?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
     *
     * Filter by unique combinations of states_countries.
     */
    distinct?: Prisma.States_countriesScalarFieldEnum | Prisma.States_countriesScalarFieldEnum[];
};
/**
 * states_countries findMany
 */
export type states_countriesFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * Filter, which states_countries to fetch.
     */
    where?: Prisma.states_countriesWhereInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
     *
     * Determine the order of states_countries to fetch.
     */
    orderBy?: Prisma.states_countriesOrderByWithRelationInput | Prisma.states_countriesOrderByWithRelationInput[];
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
     *
     * Sets the position for listing states_countries.
     */
    cursor?: Prisma.states_countriesWhereUniqueInput;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Take `±n` states_countries from the position of the cursor.
     */
    take?: number;
    /**
     * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
     *
     * Skip the first `n` states_countries.
     */
    skip?: number;
    distinct?: Prisma.States_countriesScalarFieldEnum | Prisma.States_countriesScalarFieldEnum[];
};
/**
 * states_countries create
 */
export type states_countriesCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * The data needed to create a states_countries.
     */
    data?: Prisma.XOR<Prisma.states_countriesCreateInput, Prisma.states_countriesUncheckedCreateInput>;
};
/**
 * states_countries createMany
 */
export type states_countriesCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to create many states_countries.
     */
    data: Prisma.states_countriesCreateManyInput | Prisma.states_countriesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * states_countries createManyAndReturn
 */
export type states_countriesCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelectCreateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * The data used to create many states_countries.
     */
    data: Prisma.states_countriesCreateManyInput | Prisma.states_countriesCreateManyInput[];
    skipDuplicates?: boolean;
};
/**
 * states_countries update
 */
export type states_countriesUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * The data needed to update a states_countries.
     */
    data: Prisma.XOR<Prisma.states_countriesUpdateInput, Prisma.states_countriesUncheckedUpdateInput>;
    /**
     * Choose, which states_countries to update.
     */
    where: Prisma.states_countriesWhereUniqueInput;
};
/**
 * states_countries updateMany
 */
export type states_countriesUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * The data used to update states_countries.
     */
    data: Prisma.XOR<Prisma.states_countriesUpdateManyMutationInput, Prisma.states_countriesUncheckedUpdateManyInput>;
    /**
     * Filter which states_countries to update
     */
    where?: Prisma.states_countriesWhereInput;
    /**
     * Limit how many states_countries to update.
     */
    limit?: number;
};
/**
 * states_countries updateManyAndReturn
 */
export type states_countriesUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelectUpdateManyAndReturn<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * The data used to update states_countries.
     */
    data: Prisma.XOR<Prisma.states_countriesUpdateManyMutationInput, Prisma.states_countriesUncheckedUpdateManyInput>;
    /**
     * Filter which states_countries to update
     */
    where?: Prisma.states_countriesWhereInput;
    /**
     * Limit how many states_countries to update.
     */
    limit?: number;
};
/**
 * states_countries upsert
 */
export type states_countriesUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * The filter to search for the states_countries to update in case it exists.
     */
    where: Prisma.states_countriesWhereUniqueInput;
    /**
     * In case the states_countries found by the `where` argument doesn't exist, create a new states_countries with this data.
     */
    create: Prisma.XOR<Prisma.states_countriesCreateInput, Prisma.states_countriesUncheckedCreateInput>;
    /**
     * In case the states_countries was found with the provided `where` argument, update it with this data.
     */
    update: Prisma.XOR<Prisma.states_countriesUpdateInput, Prisma.states_countriesUncheckedUpdateInput>;
};
/**
 * states_countries delete
 */
export type states_countriesDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
    /**
     * Filter which states_countries to delete.
     */
    where: Prisma.states_countriesWhereUniqueInput;
};
/**
 * states_countries deleteMany
 */
export type states_countriesDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Filter which states_countries to delete
     */
    where?: Prisma.states_countriesWhereInput;
    /**
     * Limit how many states_countries to delete.
     */
    limit?: number;
};
/**
 * states_countries without action
 */
export type states_countriesDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
    /**
     * Select specific fields to fetch from the states_countries
     */
    select?: Prisma.states_countriesSelect<ExtArgs> | null;
    /**
     * Omit specific fields from the states_countries
     */
    omit?: Prisma.states_countriesOmit<ExtArgs> | null;
};
export {};
