/** Return type for the useCodeLoader hook. */ interface UseCodeLoaderReturn { /** The loaded code content, or an error placeholder string. */ code: string; /** Whether the code file is currently being fetched. */ loading: boolean; /** Error message if the fetch failed, or null on success. */ error: string | null; } /** * Hook that fetches a code file from the `/code/` endpoint. * * Loads a code file by filename, managing loading and error states. * The file is fetched from `/code/{filename}` and returned as a string. * * @param filename - The name of the code file to fetch * @returns An object containing the code content, loading state, and any error */ export declare const useCodeLoader: (filename: string) => UseCodeLoaderReturn; export {}; //# sourceMappingURL=useCodeLoader.d.ts.map