import type { WorkflowEditing, WorkflowLintContext } from '../editing.js'; import { type UsesSources } from '../graph/usesInputs.js'; export { HOST_MARKER_OWNER, LINT_OWNER } from './lintOwner.js'; export interface LintSources extends UsesSources { secrets?: (() => Promise) | undefined; /** `uses` values the host runs itself, which have no workflow to read inputs from. */ actions?: Record | undefined; } /** * What the linter can't read from `source`: the inputs of each workflow a step uses, and which * of the user's variables are secret, as far as they have arrived. `onMore` runs when more does. */ export declare function lintContext(editing: WorkflowEditing, source: string, sources: LintSources, onMore: () => void): WorkflowLintContext; export declare function useLintSources(): LintSources; /** lintContext for a component, which renders again when more of it arrives. */ export declare function useLintContext(source: string | undefined): WorkflowLintContext; /** * The engine's editing once its checks have loaded, rendering again when they have; undefined * before then, without an engine that edits, or with `load` false. */ export declare function useLintEditing(load?: boolean): WorkflowEditing | undefined;