import type { MiddlewareHandler } from 'hono'; import type { ProjectManifestVariables } from './project-manifest.middleware.js'; import type { JsonBodyVariables } from './read-json-body.middleware.js'; export type WorkflowAuthorizationVariables = { workflowId: string; }; export interface WorkflowAuthorizationOptions { projectDir: string; } export declare function workflowAuthorization({ projectDir, }: WorkflowAuthorizationOptions): MiddlewareHandler<{ Variables: ProjectManifestVariables & JsonBodyVariables & WorkflowAuthorizationVariables; }>;