export type WorkspaceKitJsonParseSuccess<T = unknown> = {
    ok: true;
    payload: T;
};
export type WorkspaceKitJsonParseFailure = {
    ok: false;
    code: "workspace-kit-json-stdout-parse-failed";
    message: string;
    remediation: {
        summary: string;
        cleanInvocations: string[];
    };
    details: {
        exitCode?: number;
        stdoutPreview: string;
        stderrPreview?: string;
        suspectedPackageManagerBanner: boolean;
    };
};
export type WorkspaceKitJsonParseOptions = {
    exitCode?: number;
    stderr?: string;
    previewLength?: number;
};
export declare function looksLikePackageManagerBanner(stdout: string): boolean;
export declare function parseWorkspaceKitJsonStdout<T = unknown>(stdout: string, options?: WorkspaceKitJsonParseOptions): WorkspaceKitJsonParseSuccess<T> | WorkspaceKitJsonParseFailure;
