import type { RdfResource } from '@tpluscode/rdfine'; import type { HydraClient, HydraResponse } from '../alcaeus'; import type { Class, HydraResource } from './index'; import type { SupportedOperation } from './Mixins/SupportedOperation'; export interface Operation { /** * Gets the title of the operation */ title: string; description: string; method: string; expects: Array; returns: Class; requiresInput: boolean; invoke(body?: BodyInit, headers?: HeadersInit): Promise; supportedOperation: SupportedOperation; /** * Gets the resource on which the operation will be invoked */ target: HydraResource; } export default class implements Operation { readonly supportedOperation: SupportedOperation; readonly target: HydraResource; private readonly __client; constructor(supportedOperation: SupportedOperation, alcaeus: HydraClient, resource: HydraResource); get method(): string; get expects(): (RdfResource> | Class)[]; get returns(): Class; get requiresInput(): boolean; get title(): string; get description(): string; invoke(body?: BodyInit, headers?: HeadersInit): Promise; } //# sourceMappingURL=Operation.d.ts.map