import type { AnyCallableRef, TaskRef, WorkflowRef } from "./refs.js"; import type { AnyHostCtor, TaskHostCtor, ValidTaskHost, ValidWorkflowHost, WorkflowHostCtor } from "./shared.js"; /** * Creates a reference to a task within a {@link TaskHost}. * The task method is automatically resolved since a TaskHost has exactly one task. * Compile-time validation ensures the host has exactly one task method. */ export declare function taskRef>(host: ValidTaskHost): TaskRef; /** * Creates a reference to a workflow as a {@link WorkflowHost}. * Compile-time validation ensures the host has at least one workflow task method. */ export declare function workflowRef>(host: ValidWorkflowHost): WorkflowRef; /** * Gets the HostAccessor from a callable reference. */ export declare function getRefAccessor(ref: AnyCallableRef): { readonly ctor: AnyHostCtor; get metadata(): import("../index.js").HostOpts; get sdkOpts(): import("../metadata/translator.js").SdkHostOpts; get name(): string; get isWorkflow(): boolean; get isTask(): boolean; get methods(): string[]; getWorkflowTaskMeta(method: string): import("../index.js").WorkflowTaskOpts; getTaskMeta(method: string): import("../index.js").TaskOpts; };