import { DiscoveredPromptFile, PromptSource } from '../../types/prompt-source'; /** Configuration options for GitHubPromptSource */ export interface GitHubPromptSourceOptions { /** Git ref (branch, tag, or commit SHA). Defaults to 'main'. */ ref?: string; /** GitHub personal access token for private repos or to avoid rate limiting. */ token?: string; /** Explicit prompt directories to scan (relative to repo root). Overrides default 'prompts/'. */ promptDirs?: string[]; } /** * Parse a "owner/repo" string into its parts. */ export declare function parseGitHubSource(source: string): { owner: string; repo: string; ref?: string; }; /** * Discovers .prompt files from a GitHub repository using the Git Trees API. * * Fetches the repository tree and filters for files matching `prompts/*.prompt`, * then fetches each file's content from raw.githubusercontent.com. */ export declare class GitHubPromptSource implements PromptSource { private owner; private repo; private ref; private token?; private promptDirs?; constructor(ownerRepo: string, options?: GitHubPromptSourceOptions); getPrompts(): Promise; private fetchTree; private filterPromptFiles; private fetchFileContent; private getHeaders; } //# sourceMappingURL=github-prompt-source.d.ts.map