import type { Endpoint, EndpointCreateRequest, EndpointUpdateRequest } from "../../client/types.gen.js"; import type { CallOptions, RequestContext } from "../context.js"; import type { Outcome } from "../result.js"; type CreateInput = EndpointCreateRequest["endpoint"]; type UpdateInput = EndpointUpdateRequest["endpoint"]; export type EndpointsListParams = { projectId: string; }; export type EndpointsListByBranchParams = EndpointsListParams & { branchId: string; }; export type EndpointsGetParams = EndpointsListParams & { endpointId: string; }; export type EndpointsCreateParams = EndpointsListParams & CreateInput; export type EndpointsUpdateParams = EndpointsGetParams & UpdateInput; export type EndpointsDeleteParams = EndpointsGetParams; export type EndpointsStartParams = EndpointsGetParams; export type EndpointsSuspendParams = EndpointsGetParams; export type EndpointsRestartParams = EndpointsGetParams; /** Compute endpoint resource (project-scoped). */ export declare class Endpoints { #private; constructor(ctx: RequestContext); /** @apiCall GET /projects/{project_id}/endpoints */ list(params: EndpointsListParams): Promise>; list(params: EndpointsListParams, opts: CallOptions): Promise>; /** @apiCall GET /projects/{project_id}/branches/{branch_id}/endpoints */ listByBranch(params: EndpointsListByBranchParams): Promise>; listByBranch(params: EndpointsListByBranchParams, opts: CallOptions): Promise>; /** @apiCall GET /projects/{project_id}/endpoints/{endpoint_id} */ get(params: EndpointsGetParams): Promise>; get(params: EndpointsGetParams, opts: CallOptions): Promise>; /** @apiCall POST /projects/{project_id}/endpoints */ create(params: EndpointsCreateParams): Promise>; create(params: EndpointsCreateParams, opts: CallOptions): Promise>; /** @apiCall PATCH /projects/{project_id}/endpoints/{endpoint_id} */ update(params: EndpointsUpdateParams): Promise>; update(params: EndpointsUpdateParams, opts: CallOptions): Promise>; /** @apiCall DELETE /projects/{project_id}/endpoints/{endpoint_id} */ delete(params: EndpointsDeleteParams): Promise>; delete(params: EndpointsDeleteParams, opts: CallOptions): Promise>; /** @apiCall POST /projects/{project_id}/endpoints/{endpoint_id}/start */ start(params: EndpointsStartParams): Promise>; start(params: EndpointsStartParams, opts: CallOptions): Promise>; /** @apiCall POST /projects/{project_id}/endpoints/{endpoint_id}/suspend */ suspend(params: EndpointsSuspendParams): Promise>; suspend(params: EndpointsSuspendParams, opts: CallOptions): Promise>; /** @apiCall POST /projects/{project_id}/endpoints/{endpoint_id}/restart */ restart(params: EndpointsRestartParams): Promise>; restart(params: EndpointsRestartParams, opts: CallOptions): Promise>; } export {}; //# sourceMappingURL=endpoints.d.ts.map