import type { OasOperation } from '../oas/operation/Operation.js'; import type { Method } from '../types/Method.js'; /** * Determines the endpoint type based on HTTP method. * * @param operation - The OpenAPI operation to analyze * @returns 'query' for GET operations, 'mutation' for all others * * @example * ```typescript * const getOp = new OasOperation({ method: 'get', path: '/users' }); * console.log(toEndpointType(getOp)); // 'query' * * const postOp = new OasOperation({ method: 'post', path: '/users' }); * console.log(toEndpointType(postOp)); // 'mutation' * ``` */ export declare const toEndpointType: (operation: OasOperation) => "query" | "mutation"; /** * Generates endpoint name in the `camelCase{method}Api{path}` format. * * @param operation - The OpenAPI operation * @returns Camel-cased endpoint name * * @example * ```typescript * const op = new OasOperation({ method: 'post', path: '/users/{id}/profile' }); * console.log(toEndpointName(op)); // 'createApiUsersIdProfile' * ``` */ export declare const toEndpointName: (operation: OasOperation) => string; /** * Generates response type name for an operation. * * @param operation - The OpenAPI operation * @returns Response type name with 'Response' suffix * * @example * ```typescript * const op = new OasOperation({ method: 'get', path: '/users' }); * console.log(toResponseName(op)); // 'getApiUsersResponse' * ``` */ export declare const toResponseName: (operation: OasOperation) => string; /** * Generates arguments type name for an operation. * * @param operation - The OpenAPI operation * @returns Arguments type name with 'Args' suffix * * @example * ```typescript * const op = new OasOperation({ method: 'put', path: '/users/{id}' }); * console.log(toArgsName(op)); // 'updateApiUsersIdArgs' * ``` */ export declare const toArgsName: (operation: OasOperation) => string; /** * Converts HTTP method to a descriptive verb. * * @param method - HTTP method * @returns Descriptive verb for the method * * @example * ```typescript * console.log(toMethodVerb('post')); // 'Create' * console.log(toMethodVerb('put')); // 'Update' * console.log(toMethodVerb('get')); // 'get' * console.log(toMethodVerb('delete')); // 'delete' * ``` */ export declare const toMethodVerb: (method: Method) => string; //# sourceMappingURL=naming.d.ts.map