import { APIResource } from "../../../core/resource.js"; import * as SchemaAPI from "./schema.js"; import { BaseSchema, Schema, SchemaGetParams, SchemaGetResponse } from "./schema.js"; import { PagePromise, V4PagePaginationArray, type V4PagePaginationArrayParams } from "../../../core/pagination.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class BaseModels extends APIResource { static readonly _key: readonly ['ai', 'models']; /** * Searches Workers AI models by name or description. */ list(params: ModelListParams, options?: RequestOptions): PagePromise; } export declare class Models extends BaseModels { schema: SchemaAPI.Schema; } export type ModelListResponsesV4PagePaginationArray = V4PagePaginationArray; export type ModelListResponse = unknown; export interface ModelListParams extends V4PagePaginationArrayParams { /** * Path param */ account_id: string; /** * Query param: Filter by Author */ author?: string; /** * Query param: If set, return models in the requested marketplace format instead * of the default response. */ format?: 'openrouter'; /** * Query param: Filter to hide experimental models */ hide_experimental?: boolean; /** * Query param: If true, include models whose planned_deprecation_date is in the * past — but only within a three-month grace window after that date. Models whose * planned_deprecation_date is more than three months in the past remain hidden * regardless of this flag. Future planned-deprecation dates are always included * regardless of this flag. Defaults to false, preserving the existing behavior of * hiding all past-dated deprecations. */ include_deprecated?: boolean; /** * Query param: Search */ search?: string; /** * Query param: Filter by Source Id */ source?: number; /** * Query param: Filter by Task Name */ task?: string; } export declare namespace Models { export { type ModelListResponse as ModelListResponse, type ModelListResponsesV4PagePaginationArray as ModelListResponsesV4PagePaginationArray, type ModelListParams as ModelListParams, }; export { Schema as Schema, BaseSchema as BaseSchema, type SchemaGetResponse as SchemaGetResponse, type SchemaGetParams as SchemaGetParams, }; } //# sourceMappingURL=models.d.ts.map