/**
 * Last Failed command - Retrieve cached test failure data
 */
import type { Config } from '../../config';
import type { Command } from '../../types';
import { z } from 'zod';
/**
 * CLI options specific to the last failed command
 */
export interface LastFailedOptions {
    cacheId?: string;
    branch?: string;
    commit?: string;
    token?: string;
    verbose?: boolean;
}
/**
 * Zod schema for last failed options validation
 */
export declare const LastFailedOptionsSchema: z.ZodObject<{
    cacheId: z.ZodOptional<z.ZodString>;
    branch: z.ZodOptional<z.ZodString>;
    commit: z.ZodOptional<z.ZodString>;
    token: z.ZodOptional<z.ZodString>;
    verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
}, z.core.$strip>;
export type ValidatedLastFailedOptions = z.infer<typeof LastFailedOptionsSchema>;
/**
 * Last Failed command implementation
 */
export declare class LastFailedCommand implements Command {
    private readonly config;
    readonly name = "last-failed";
    readonly description = "Get last failed test cases for Playwright execution";
    constructor(config: Config);
    /**
     * Execute the last failed command
     */
    execute(options: ValidatedLastFailedOptions): Promise<void>;
    /**
     * Determine cache ID using same logic as cache store command
     */
    private determineCacheId;
    /**
     * Get cached failure data from API
     */
    private getCachedFailures;
    /**
     * Format failure data for Playwright command
     */
    private formatPlaywrightArgs;
    /**
     * Escape test title for Playwright's -g flag
     */
    private escapeForGrep;
}
//# sourceMappingURL=last-failed.d.ts.map