/** * Stage one of this package's registration: what the `text` tab type IS. * * The type claims every `dsh-resource://file/session//` * address at the `fallback` band: it * is the plain viewer that any more specific type for the same address should * beat, the position VS Code's text editor holds among its editors. `canOpen` * refuses an address `parseFileAddress` rejects or that has no Session at claim time, where an * unclaimed address is the documented wiring error. */ import type { SidebarRightTabDefinition } from '@deepseek-ai/dsh-client-ui-sidebar-right/client'; /** The tab kind this package owns. */ export declare const TEXTPREVIEW_KIND = "text"; /** This implementation's identity in the tab system: the key its body registers under. */ export declare const TEXTPREVIEW_ID = "@deepseek-ai/dsh-client-ui-sidebar-documentpreview"; /** * The tab title for one `file:` address: its decoded basename. * * The whole address stays the content identity, so two files with one name in * different directories are two tabs; only the chip text is shortened. Decoding * is per segment, matching how the address was built, so a name carrying `#`, * `?`, or a space reads as itself. * @param address - a `file:`-shaped address. * @returns the decoded last path segment, or the address itself when it has none. */ export declare function basenameOf(address: string): string; /** * The text type's registry definition. * @returns the definition to register. */ export declare function textDefinition(): SidebarRightTabDefinition; //# sourceMappingURL=definition.d.ts.map