import type { UIData, WorkflowJsonRef } from '../components/Provider.js'; import type { WorkflowEditing } from '../editing.js'; import { type Json } from './records.js'; /** The file a repository `uses` reads when its step names no `$yaml`. */ export declare const DEFAULT_REPO_YAML = "workflow.yaml"; /** The host a GitLab `uses` reads from when its step names no `$host`. */ export declare const DEFAULT_GITLAB_HOST = "gitlab.com"; export interface UsesSources { resolve?: ((ref: WorkflowJsonRef) => Promise) | undefined; repos?: UIData['repoSuggestions']; savedInputs?: UIData['resolveSavedInputs']; } export declare function splitAtRef(value: string): [string, string]; /** What a step can pass the workflow its `uses` names. */ export interface UsesTarget { inputs: Json; /** The saved inputs the step's `$configuration` can name: those under its `configurations`, * then the reader's own for it. */ configurations: string[]; } /** The inputs and saved inputs of the workflow `uses` names; null when it can't be read. */ export declare function loadUsesTarget(editing: WorkflowEditing, uses: string, where: { yamlPath: string; host: string; }, sources: UsesSources): Promise; /** The inputs of the workflow a step's `uses` names; null when it can't be read. */ export declare function loadUsesInputs(editing: WorkflowEditing, uses: string, where: { yamlPath: string; host: string; }, sources: UsesSources): Promise;