/** * Crown Fund API: TypeScript declarations (for Code Mode agents and SDK generators). * Base URL https://mcp.crownfund.co. REST: GET /v1/?query or POST /v1/ with a JSON body. MCP: POST https://mcp.crownfund.co/mcp. * Generated from the same definitions as the MCP tools. */ export type ListCalculatorsInput = { /** uk or us. Shared calculators appear in both. */ region?: "uk" | "us"; /** Group */ group?: "Fundraising & equity" | "Growth & unit economics" | "Cash & operations" | "UK company & tax" | "US company & tax" | "Pay & living"; }; export type ListCalculatorsOutput = { /** */ calculators?: Array>; }; export type RunCalculatorInput = { /** Calculator id (see list_calculators) */ id: "india-uk-salary" | "uk-take-home" | "india-in-hand" | "uk-employee-cost" | "india-uk-hire" | "salary-vs-dividends" | "corporation-tax" | "vat-threshold" | "seis-eis" | "rd-relief" | "round-dilution" | "safe-conversion" | "multi-round" | "exit-waterfall" | "valuation" | "ltv-cac" | "runway" | "break-even" | "burn-multiple" | "rule-of-40" | "mrr-projector" | "nrr" | "margin-markup" | "loan" | "raise-size" | "investor-returns" | "convertible-note" | "down-round" | "pro-rata" | "vesting" | "price-increase" | "discount-breakeven" | "magic-number" | "sales-capacity" | "funnel" | "annual-prepay" | "hire-impact" | "contractor-vs-employee" | "rbf-cost" | "raise-timing" | "cash-cycle" | "fx-exposure" | "exit-cgt" | "emi-options" | "company-pension" | "india-us-salary" | "us-take-home" | "us-employee-cost" | "india-us-hire" | "scorp-salary" | "us-corp-tax" | "sales-tax-nexus" | "qsbs" | "us-rd-credit" | "delaware-franchise" | "us-exit-tax" | "iso-nso" | "election-83b" | "solo-401k" | "us-hire-impact" | "us-contractor"; /** uk or us (default: the calculator’s own region, else uk) */ region?: "uk" | "us"; /** Input values keyed by input id */ inputs?: Record; }; export type RunCalculatorOutput = { /** Calculator id */ id?: string; /** Title */ title?: string; /** Region used */ region?: string; /** Inputs used */ inputs?: Record; /** Headline result: label, value, sub */ primary?: Record; /** */ rows?: Array>; /** */ bars?: Array>; /** */ notes?: Array; /** Open it on crownfund.co */ url?: string; }; export type SearchFilingsInput = { /** UK or US */ country?: "UK" | "US"; /** UK, Federal, Delaware, California, New York, Texas, Florida or Washington */ scope?: string; /** Topic */ category?: "Registration" | "Company tax" | "Company admin" | "Payroll" | "Sales tax & VAT" | "Equity & investment" | "R&D" | "Personal tax"; /** Free text, e.g. "CT600", "1099", "franchise", "EMI" */ query?: string; }; export type SearchFilingsOutput = { /** */ filings?: Array>; /** Date sources were checked */ checked?: string; }; export type ComplianceCalendarInput = { /** UK or US */ country: "UK" | "US"; /** Accounting / tax year end as MM-DD, e.g. 03-31 or 12-31 */ year_end: string; /** Incorporation date YYYY-MM-DD (UK: first accounts and confirmation statements) */ incorporated?: string; /** Start date YYYY-MM-DD (default today) */ from?: string; /** How many months ahead (1-36, default 12) */ months?: number; /** Runs a payroll */ employer?: boolean; /** UK: VAT registered */ vat_registered?: boolean; /** UK VAT stagger 1, 2 or 3 (quarter ends Mar/Jun/Sep/Dec, Apr/Jul/Oct/Jan, May/Aug/Nov/Feb) */ vat_stagger?: number; /** UK: has EMI options */ emi?: boolean; /** UK: will claim R&D relief */ rd_claim?: boolean; /** UK: include directors’ Self Assessment dates */ director_self_assessment?: boolean; /** US entity */ entity?: "c-corp" | "s-corp" | "partnership" | "sole"; /** */ states?: Array; /** US: pays contractors (1099-NEC) */ contractors?: boolean; /** US: employees exercised ISOs */ iso_exercises?: boolean; /** US: 25%+ foreign-owned (Form 5472) */ foreign_owned?: boolean; /** US: foreign bank accounts over $10,000 (FBAR) */ foreign_accounts?: boolean; /** US: include founders’ 1040 and estimated tax dates */ founder_individual?: boolean; }; export type ComplianceCalendarOutput = { /** */ events?: Array<{ /** YYYY-MM-DD */ date?: string; /** What is due */ title?: string; /** Form */ form?: string; /** Who it goes to */ authority?: string; /** Filing Almanac id */ filing_id?: string; /** Official page */ link?: string; /** Notes */ note?: string; }>; /** Calendar subscription URL */ ics_url?: string; /** */ notes?: Array; }; export type TaxRulesInput = { /** uk, us or india */ country: "uk" | "us" | "india"; }; export type TaxRulesOutput = { /** Country */ country?: string; /** Rates and thresholds */ rules?: Record; /** Where each rule comes from */ sources?: string; }; export type ReadinessQuestionsInput = Record; export type ReadinessQuestionsOutput = { /** */ questions?: Array>; }; export type ReadinessScoreInput = { /** 14 answer indexes */ answers: Array; }; export type ReadinessScoreOutput = { /** Score out of 100 */ total?: number; /** Tier */ tier?: string; /** Position */ rank?: string; /** */ categories?: Array>; /** */ gaps?: Array>; }; export type FindSolicitorsInput = { /** What you need */ need: "company" | "employment" | "ip" | "commercial" | "property" | "disputes" | "immigration" | "tax" | "regulatory" | "personal" | "criminal"; /** Town or postcode (prefix), e.g. Manchester or EC2 */ where?: string; /** Firm name filter */ name?: string; /** Max results (default 20, max 100) */ limit?: number; }; export type FindSolicitorsOutput = { /** Need */ need?: string; /** Matches */ total?: number; /** */ firms?: Array<{ /** Firm name */ name?: string; /** SRA number */ sra_number?: number; /** Head office town */ town?: string; /** Head office postcode */ postcode?: string; /** County */ county?: string; /** Phone */ phone?: string; /** Website */ website?: string; /** Number of offices */ offices?: number; /** Guideline hourly-rate band for the office */ rate_band?: string; /** SRA register page */ register_url?: string; }>; /** Register snapshot date */ updated?: string; }; export type VerifyLawFirmInput = { /** Firm name or SRA number */ query: string; }; export type VerifyLawFirmOutput = { /** What was searched */ query?: string; /** */ results?: Array>; }; export type CheckDocumentForLawFirmsInput = { /** The text of the document (max 20,000 characters) */ text: string; }; export type CheckDocumentForLawFirmsOutput = { /** */ found?: Array>; /** */ warnings?: Array; }; export type LegalRatesInput = { /** uk or us */ country?: "uk" | "us"; /** UK postcode or outward code */ postcode?: string; /** UK town */ town?: string; /** Hours to estimate (default 5) */ hours?: number; }; export type LegalRatesOutput = Record; export type LegalAidCheckInput = { /** Need */ need: "company" | "employment" | "ip" | "commercial" | "property" | "disputes" | "immigration" | "tax" | "regulatory" | "personal" | "criminal"; /** uk or us */ country?: "uk" | "us"; }; export type LegalAidCheckOutput = Record; export type LegalMarketInput = { /** Need */ need: "company" | "employment" | "ip" | "commercial" | "property" | "disputes" | "immigration" | "tax" | "regulatory" | "personal" | "criminal"; /** How many towns (default 15) */ top?: number; }; export type LegalMarketOutput = { /** Need */ need?: string; /** Firms */ total?: number; /** */ towns?: Array>; /** firms per rate band */ bands?: Record; }; export type UsLegalHelpInput = { /** State code */ state?: "CA" | "NY" | "TX" | "FL" | "DE" | "WA"; }; export type UsLegalHelpOutput = Record; export type FindNyAttorneysInput = { /** Last name or firm (prefix) */ query: string; /** City (prefix) */ city?: string; }; export type FindNyAttorneysOutput = { /** */ attorneys?: Array>; }; export type CrownFundServicesInput = Record; export type CrownFundServicesOutput = Record; export interface CrownFund { /** List founder calculators. List the 61 Counting House calculators (fundraising, growth, cash, UK and US tax, pay) with their inputs. Filter by region (uk or us) and group. (GET /v1/calculators) */ list_calculators(input: ListCalculatorsInput): Promise; /** Run a calculator. Run any Counting House calculator. Pass its id and any inputs to override (others use defaults). Money is in GBP for region uk, USD for us (shared calculators follow the region). Percentages are whole numbers (20 = 20%). (POST /v1/calculators/run) */ run_calculator(input: RunCalculatorInput): Promise; /** Search UK and US filings. Search the Filing Almanac: 77 HMRC, Companies House, IRS, SSA, SEC, FinCEN and state (DE, CA, NY, TX, FL, WA) filings with who files, when, how, penalties and the official source (checked 2026-11-30). (GET /v1/filings) */ search_filings(input: SearchFilingsInput): Promise; /** Compliance calendar for a company. Dated filing and payment deadlines for a UK or US company from its year end and facts (employer, VAT, EMI, R&D, entity type, states...). Each event links to the official page. Add ?format=ics (or GET /v1/calendar.ics) to subscribe in Google, Apple or Outlook Calendar. (POST /v1/calendar) */ compliance_calendar(input: ComplianceCalendarInput): Promise; /** Tax rules and rates. The rates, thresholds and allowances behind the calculators: UK 2026/27, US federal 2026 (with state summaries) or India new regime, with the official sources they were checked against. (GET /v1/tax) */ tax_rules(input: TaxRulesInput): Promise; /** Investor readiness questions. The 14 questions of the Crown Fund Investor Readiness Diagnostic (traction, team, market, readiness, narrative) with their answer options. (GET /v1/readiness/questions) */ readiness_questions(input: ReadinessQuestionsInput): Promise; /** Score investor readiness. Score a venture on the Investor Readiness Diagnostic. Pass 14 answer indexes (0-based, in question order). Returns the score out of 100, tier, category scores and the gaps to fix first. (POST /v1/readiness/score) */ readiness_score(input: ReadinessScoreInput): Promise; /** Find SRA-authorised solicitor firms. Find currently SRA-authorised solicitor firms in England and Wales for a founder need, near a town or postcode, with each office’s guideline hourly-rate band and SRA register link. (GET /v1/legal/solicitors) */ find_solicitors(input: FindSolicitorsInput): Promise; /** Verify a law firm on the SRA register (live). Check a firm name or SRA number live against the SRA register before you instruct it or pay it: authorisation status (authorised, conditions, ceased, revoked, SRA intervened), whether it is safe to instruct, trading and previous names, work areas and head office details. (GET /v1/legal/verify) */ verify_law_firm(input: VerifyLawFirmInput): Promise; /** Check a letter or email for law firms. Paste a letter, email, invoice or term sheet: finds SRA numbers and law-firm names in it and verifies each live on the SRA register. Useful against impersonation scams and to confirm the firm on the other side is regulated. (POST /v1/legal/check-document) */ check_document_for_law_firms(input: CheckDocumentForLawFirmsInput): Promise; /** Official hourly-rate benchmarks. UK: the GOV.UK solicitors’ guideline hourly rates (from 1 January 2026) for a postcode or town, by grade, with an estimate for a number of hours. US: the DOJ Fitzpatrick Matrix 2026. (GET /v1/legal/rates) */ legal_rates(input: LegalRatesInput): Promise; /** Can legal aid apply?. Whether legal aid can apply to a need in England and Wales (GOV.UK scope and means test) or the US (LSC-funded programmes, 125% of poverty guidelines), with where to check. (GET /v1/legal/aid) */ legal_aid_check(input: LegalAidCheckInput): Promise; /** Where the firms are. For a founder need, the towns with the most SRA-authorised firms and the share of firms in each guideline-rate band: useful to pick where to look or to compare London with regional firms. (GET /v1/legal/market) */ legal_market(input: LegalMarketInput): Promise; /** US lawyer finders by state. Official state bar lawyer-referral services and licence lookups (CA, NY, TX, FL, DE, WA), the federal legal-aid rule and the DOJ rate benchmark. (GET /v1/legal/us) */ us_legal_help(input: UsLegalHelpInput): Promise; /** Search New York registered attorneys (live). Live search of New York’s attorney registrations (NY court system open data): currently registered attorneys by last name or firm, optionally by city. (GET /v1/legal/us/ny-attorneys) */ find_ny_attorneys(input: FindNyAttorneysInput): Promise; /** Crown Fund services and links. What Crown Fund offers founders (integration tiers and prices, diagnostic, Funding School, QRaaS) and where each tool lives. (GET /v1/crownfund) */ crown_fund_services(input: CrownFundServicesInput): Promise; }