import type { LeafDef } from '../../../core/command.js'; export interface GhRunResult { code: number | null; stdout: Buffer; stderr: string; error?: Error; /** HTTP status parsed from `gh api --include`; absent is deliberately indeterminate. */ httpStatus?: number; } export type GhRunner = (args: string[], input?: Buffer) => GhRunResult; export declare function defaultGhRunner(args: string[], input?: Buffer): GhRunResult; export interface SubmitResult { status: 'submitted'; reference: string; repository: string; url: string; } export declare function submitPreparedBundle(reference: string, env: NodeJS.ProcessEnv, ghRunner?: GhRunner): Promise; export declare const supportSubmitLeaf: LeafDef;