/** * @license * Copyright 2025 Steven Roussey * SPDX-License-Identifier: Apache-2.0 */ import type { CachePolicy, TaskConfig } from "@workglow/task-graph"; import { CreateWorkflow, Task } from "@workglow/task-graph"; import type { DataPortSchema, FromSchema } from "@workglow/util/schema"; declare const log_levels: readonly ["dir", "log", "debug", "info", "warn", "error"]; type LogLevel = (typeof log_levels)[number]; export type DebugLogTaskConfig = TaskConfig & { /** Log level to use for output */ log_level?: LogLevel; }; declare const inputSchema: { readonly type: "object"; readonly properties: {}; readonly additionalProperties: true; }; declare const outputSchema: { readonly type: "object"; readonly properties: {}; readonly additionalProperties: true; }; export type DebugLogTaskInput = FromSchema; export type DebugLogTaskOutput = FromSchema; export declare class DebugLogTask extends Task { static type: string; static category: string; static title: string; static description: string; static cachePolicy: CachePolicy; static passthroughInputsToOutputs: boolean; static customizable: boolean; static isPassthrough: boolean; static configSchema(): DataPortSchema; static inputSchema(): { readonly type: "object"; readonly properties: {}; readonly additionalProperties: true; }; static outputSchema(): { readonly type: "object"; readonly properties: {}; readonly additionalProperties: true; }; execute(input: Input): Promise; executePreview(input: Input): Promise; } export declare const debugLog: (input: DebugLogTaskInput, config?: DebugLogTaskConfig) => Promise<{ [x: string]: unknown; }>; declare module "@workglow/task-graph" { interface Workflow { debugLog: CreateWorkflow; } } export {};