1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * This file is part of the Nexus MCP SDK package.
7: *
8: * (c) 2026 John Paul E. Balandan, CPA <paulbalandan@gmail.com>
9: *
10: * For the full copyright and license information, please view
11: * the LICENSE file that was distributed with this source code.
12: */
13:
14: namespace Nexus\Mcp\Server\Completion;
15:
16: use Nexus\Mcp\Core\Schema\Prompt\PromptReference;
17: use Nexus\Mcp\Core\Schema\Resource\ResourceTemplateReference;
18: use Nexus\Mcp\Core\Schema\Result\CompleteResult;
19: use Nexus\Mcp\Server\ServerContext;
20:
21: /**
22: * Read surface that the built-in `completion/complete` request handler depends on.
23: */
24: interface CompletionStoreInterface
25: {
26: /**
27: * @param null|array<string, string> $contextArguments
28: */
29: public function complete(
30: PromptReference|ResourceTemplateReference $ref,
31: string $argumentName,
32: string $argumentValue,
33: ?array $contextArguments,
34: ServerContext $context,
35: ): CompleteResult;
36: }
37: