import { DateTime } from 'luxon';
import { MdArtifactStatusInEnvironment } from '../../graphql/graphql-sdk';
import { QueryArtifactVersion, QueryConstraint, QueryLifecycleStep } from '../types';
import { VersionAction } from '../../versionMetadata/MetadataComponents';
export declare const getConstraintsStatusSummary: (constraints: QueryConstraint[]) => {
    text: string;
    status: "PENDING" | "PASS" | "FAIL" | "FORCE_PASS";
};
export declare const getLifecycleEventByType: (version: QueryArtifactVersion | undefined, type: QueryLifecycleStep['type']) => QueryLifecycleStep | undefined;
export declare const getLifecycleEventDuration: (version: QueryArtifactVersion | undefined, type: QueryLifecycleStep['type']) => string;
export declare const getLifecycleEventLink: (version: QueryArtifactVersion | undefined, type: QueryLifecycleStep['type']) => string;
export declare const isBaking: (version: QueryArtifactVersion) => boolean;
export interface LifecycleEventSummary {
    startedAt?: DateTime;
    duration?: string;
    link?: string;
    isRunning: boolean;
}
export declare const getLifecycleEventSummary: (version: QueryArtifactVersion | undefined, type: QueryLifecycleStep['type']) => LifecycleEventSummary | undefined;
interface ICreateVersionActionsProps {
    environment: string;
    reference: string;
    version: string;
    buildNumber?: string;
    commitMessage?: string;
    isPinned: boolean;
    status?: MdArtifactStatusInEnvironment;
    compareLinks?: {
        previous?: string;
        current?: string;
    };
}
export declare const useCreateVersionActions: ({ environment, reference, version, status, buildNumber, commitMessage, isPinned, compareLinks, }: ICreateVersionActionsProps) => VersionAction[] | undefined;
export {};
