import type { WorkflowAction } from '../editing.js'; import { type Row, type Strings } from './editorFields.js'; import { type InputSource } from './inputRefs.js'; /** The built-in actions a step can use, by `uses` value, as the host lists them. */ export type WorkflowActions = Record; /** Every `with` key the step dialog writes for `actions`, for a schema coverage test. */ export declare function withFields(actions: WorkflowActions): string[]; type UsesKind = 'action' | 'github' | 'gitlab' | 'subworkflow' | 'other'; export declare function usesKind(uses: string, actions: WorkflowActions): UsesKind; export interface WithDraft { values: Record; rows: Row[]; removed: string[]; } export declare function withDraftFrom(value: unknown, actions: WorkflowActions): WithDraft; /** The step's `with` for `uses`, or its original when nothing changed. */ export declare function withValue(uses: string, actions: WorkflowActions, draft: WithDraft, initial: WithDraft, originalUses: string, original: unknown): unknown; export declare function withError(uses: string, actions: WorkflowActions, draft: WithDraft, original: unknown, t: Strings): string | undefined; /** What a step uses: a built-in action, a workflow of yours, one from the marketplace, or one in a repository. */ export declare function UsesPicker({ uses, onUses, choices, draft, onDraft, error, }: { uses: string; onUses: (uses: string) => void; /** `workflow/NAME` and `marketplace/SLUG` values to offer. */ choices: string[]; draft: WithDraft; onDraft: (draft: WithDraft) => void; error: string | undefined; }): import("react").JSX.Element; /** The step's `with`: an action's own inputs, or a subworkflow's by name. */ export declare function WithEditor({ uses, draft, original, onChange, error, source, }: { uses: string; draft: WithDraft; original: unknown; onChange: (draft: WithDraft) => void; error: string | undefined; source: InputSource; }): import("react").JSX.Element; export {};