export declare const sdkJsPackage = "@runx/sdk"; export * from "./caller.js"; export * from "./framework-adapters.js"; import { type MarketplaceAdapter, type SkillSearchResult } from "../../marketplaces/src/index.js"; import { type LocalReceipt, type ReceiptVerification } from "../../receipts/src/index.js"; import { type PublishSkillMarkdownOptions, type PublishSkillMarkdownResult, type RegistryStore } from "../../registry/src/index.js"; import { type AuthResolver, type Caller, type InstallLocalSkillResult, type RunLocalSkillResult } from "../../runner-local/src/index.js"; import { type PublishHarnessSummary } from "../../harness/src/index.js"; import { type StructuredCallerOptions } from "./caller.js"; export interface ConnectService { readonly list: () => Promise; readonly preprovision: (provider: string, scopes: readonly string[]) => Promise; readonly revoke: (grantId: string) => Promise; } export interface RunxSdkOptions { readonly env?: NodeJS.ProcessEnv; readonly caller?: Caller; readonly callerOptions?: StructuredCallerOptions; readonly receiptDir?: string; readonly runxHome?: string; readonly registryDir?: string; readonly registryUrl?: string; readonly registryStore?: RegistryStore; readonly marketplaceAdapters?: readonly MarketplaceAdapter[]; readonly connect?: ConnectService; readonly authResolver?: AuthResolver; readonly allowedSourceTypes?: readonly string[]; } export interface RunSkillOptions { readonly skillPath: string; readonly inputs?: Readonly>; readonly answersPath?: string; readonly receiptDir?: string; readonly runxHome?: string; readonly parentReceipt?: string; readonly contextFrom?: readonly string[]; readonly caller?: Caller; readonly authResolver?: AuthResolver; readonly allowedSourceTypes?: readonly string[]; readonly resumeFromRunId?: string; } export interface SearchSkillsOptions { readonly query: string; readonly source?: string; readonly limit?: number; } export interface AddSkillOptions { readonly ref: string; readonly version?: string; readonly to?: string; readonly expectedDigest?: string; readonly registryUrl?: string; } export interface PublishSkillOptions extends PublishSkillMarkdownOptions { readonly skillPath: string; } export interface PublishSkillResult extends PublishSkillMarkdownResult { readonly harness: PublishHarnessSummary; } export interface InspectReceiptOptions { readonly receiptId: string; readonly receiptDir?: string; } export interface HistoryOptions { readonly receiptDir?: string; readonly limit?: number; } export interface HistoryEntry { readonly id: string; readonly kind: LocalReceipt["kind"]; readonly status: LocalReceipt["status"]; readonly verification: ReceiptVerification; readonly path: string; readonly started_at?: string; readonly completed_at?: string; } export type InspectReceiptResult = LocalReceipt & { readonly verification: ReceiptVerification; }; export declare class RunxSdk { private readonly options; constructor(options?: RunxSdkOptions); runSkill(options: RunSkillOptions): Promise; inspectReceipt(options: InspectReceiptOptions): Promise; history(options?: HistoryOptions): Promise; searchSkills(options: SearchSkillsOptions): Promise; addSkill(options: AddSkillOptions): Promise; publishSkill(options: PublishSkillOptions): Promise; connectList(): Promise; connectPreprovision(provider: string, scopes?: readonly string[]): Promise; connectRevoke(grantId: string): Promise; private caller; private env; private receiptDir; private registryStore; private registryTarget; private marketplaceAdapters; private requireConnect; } export declare function createRunxSdk(options?: RunxSdkOptions): RunxSdk; export declare function runSkill(options: RunSkillOptions & RunxSdkOptions): Promise; export declare function inspect(options: InspectReceiptOptions & RunxSdkOptions): Promise; export declare function history(options?: HistoryOptions & RunxSdkOptions): Promise; export declare function search(options: SearchSkillsOptions & RunxSdkOptions): Promise; export declare function add(options: AddSkillOptions & RunxSdkOptions): Promise; export declare function publish(options: PublishSkillOptions & RunxSdkOptions): Promise; export declare function connectList(options: RunxSdkOptions): Promise; export declare function connectPreprovision(options: { readonly provider: string; readonly scopes?: readonly string[]; } & RunxSdkOptions): Promise; export declare function connectRevoke(options: { readonly grantId: string; } & RunxSdkOptions): Promise;