<?php

namespace App\Contracts;

interface StockProvider
{
    /**
     * Check if stock provider is enabled
     *
     * @return bool
     */
    public function enabled(): bool;

    /**
     * Name of the stock provider
     *
     * @return string
     */
    public function name(): string;

    /**
     * Import vehicle collection from the provider
     */
    public function runScheduledImport(bool $fullSync = true): void;

    /**
     * Get import statistics after running scheduled import
     *
     * @return array{processed: int, created: int, updated: int, failed: int}
     */
    public function getImportStats(): array;
}
